Implement rooms V3 through V9
This commit is contained in:
21
vona/utils/roomwithver.py
Normal file
21
vona/utils/roomwithver.py
Normal file
@@ -0,0 +1,21 @@
|
||||
import vona.globals as globals
|
||||
import vona.config as config
|
||||
import os
|
||||
|
||||
versions = [str(i) for i in range(1, 10)]
|
||||
desired_ver = input("Desired room version:\n\t")
|
||||
|
||||
if desired_ver not in versions:
|
||||
os._exit(1)
|
||||
|
||||
try:
|
||||
while True:
|
||||
room_id = os.urandom(8).hex()
|
||||
room_ver = globals.room_version_from_id(room_id)
|
||||
|
||||
if room_ver == desired_ver:
|
||||
print(f"!{room_id}:{config.server_name}")
|
||||
break
|
||||
except:
|
||||
print("")
|
||||
pass
|
||||
Reference in New Issue
Block a user