brunogge 0.1.7__py3-none-any.whl → 0.1.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- brunogge/__init__.py +1 -1
- brunogge/getconfig.py +8 -3
- brunogge/ggs_stuff.py +9 -0
- {brunogge-0.1.7.dist-info → brunogge-0.1.9.dist-info}/METADATA +1 -1
- brunogge-0.1.9.dist-info/RECORD +11 -0
- brunogge-0.1.7.dist-info/RECORD +0 -11
- {brunogge-0.1.7.dist-info → brunogge-0.1.9.dist-info}/WHEEL +0 -0
- {brunogge-0.1.7.dist-info → brunogge-0.1.9.dist-info}/top_level.txt +0 -0
brunogge/__init__.py
CHANGED
brunogge/getconfig.py
CHANGED
@@ -52,13 +52,15 @@ def getconfig(type:str ,savename:str ,created: str | None = "y") -> dict:
|
|
52
52
|
# Convert to JSON string and return
|
53
53
|
return json.dumps(result, indent=4) # Return a formatted JSON string
|
54
54
|
if created == "n":
|
55
|
-
|
55
|
+
home_directory = os.path.expanduser("~")
|
56
|
+
configname = os.path.join(home_directory, type + "config.ini")
|
57
|
+
config_maker_barons(savename, configname)
|
56
58
|
else:
|
57
59
|
print("Invalid str as the created parameter. Use 'y' or 'n' - y if you have created the config already, 'n' if no.")
|
58
60
|
exit()
|
59
61
|
|
60
62
|
|
61
|
-
def config_maker_barons(savename, filename =
|
63
|
+
def config_maker_barons(savename, filename: str | None = None):
|
62
64
|
config = ConfigParser()
|
63
65
|
unit_options = {
|
64
66
|
"1": ("Distance Samurai", '35'),
|
@@ -137,7 +139,10 @@ def config_maker_barons(savename, filename = "baronconfig.ini"):
|
|
137
139
|
else:
|
138
140
|
print("Input cannot be empty.")
|
139
141
|
|
140
|
-
|
142
|
+
nick = input("Enter your nickname: ")
|
143
|
+
config.set(save_name, "nick", nick)
|
144
|
+
passwd = input("Enter your password (stored local): ")
|
145
|
+
config.set(save_name, "pwrd", passwd)
|
141
146
|
kid = input("Kingdom Green = g, Kingdom Fire = f, Kingdom Sand = s, Kingdom Cold = c\nKingdom -> <-\b\b\b")
|
142
147
|
config.set(save_name, "kid", kid)
|
143
148
|
|
brunogge/ggs_stuff.py
CHANGED
@@ -30,6 +30,7 @@ async def ggs_login(ws, nick: str, pwrd: str, server: str, kid: int | None = 0)
|
|
30
30
|
for fragment in fragments:
|
31
31
|
lids.append(fragment["ID"])
|
32
32
|
lids = sorted(lids)
|
33
|
+
print("Lids: ", lids)
|
33
34
|
break
|
34
35
|
except asyncio.TimeoutError:
|
35
36
|
break
|
@@ -44,11 +45,19 @@ async def ggs_login(ws, nick: str, pwrd: str, server: str, kid: int | None = 0)
|
|
44
45
|
await ws.send(f"%xt%{server}%sie%1%{{}}%")
|
45
46
|
await ws.send(f"""%xt%{server}%ffi%1%{{"FIDS":[1]}}%""")
|
46
47
|
await ws.send(f"%xt%{server}%kli%1%{{}}%")
|
48
|
+
print(nick)
|
49
|
+
print(pwrd)
|
50
|
+
print(server)
|
51
|
+
print("BEFORE WSOPEN")
|
47
52
|
while ws.open:
|
53
|
+
print("AFTER WSOPEN")
|
48
54
|
try:
|
55
|
+
print("AFTER WSOPEN2")
|
49
56
|
response = await asyncio.wait_for(ws.recv(), timeout=4)
|
50
57
|
response = response.decode('utf-8')
|
58
|
+
print(response)
|
51
59
|
if "%xt%jaa%1%0%" in response:
|
60
|
+
print(response)
|
52
61
|
sx_list = []
|
53
62
|
sy_list = []
|
54
63
|
cid_list = []
|
@@ -0,0 +1,11 @@
|
|
1
|
+
brunogge/__init__.py,sha256=L9CwlO0fPomYb6nje7LgTAE29B2aR55QRIroO6BNt5Y,275
|
2
|
+
brunogge/barony.py,sha256=6Xm-i5AaXa8oVQ_kzX0_tDZucoBVplF7gYTGuad6djk,14891
|
3
|
+
brunogge/get_ws.py,sha256=nPsvNReq4DzflvOItHOd3WgajAV7f3ckeZr8qRADYsI,709
|
4
|
+
brunogge/getconfig.py,sha256=5vS0MY694E2wgJCxr3Phrfc5Gakru8u2EIherlkW-2k,9756
|
5
|
+
brunogge/ggs_stuff.py,sha256=0mbL3KOdXcz6NZx_3xDFaLQiXPrVFGkmtfDosN3HtxY,5365
|
6
|
+
brunogge/just_funcs.py,sha256=H5cuxNYnWrs7hgr4XCM7RZRkcbFUuAiS306vIx_4nWI,3956
|
7
|
+
brunogge/server_list.json,sha256=5hZrlPH7tbFY7m1bqMMgsKiyHkGiPTnVMAW2B9WLabc,5084
|
8
|
+
brunogge-0.1.9.dist-info/METADATA,sha256=-8znSgFGcf2hbquxYgztdXSrNlJ87c7zpVPLi3gw-Uo,328
|
9
|
+
brunogge-0.1.9.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
10
|
+
brunogge-0.1.9.dist-info/top_level.txt,sha256=oTTOxi0gm7TPhnipjl1nIXsYLRrnWnDzKKLCfRVhAjw,9
|
11
|
+
brunogge-0.1.9.dist-info/RECORD,,
|
brunogge-0.1.7.dist-info/RECORD
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
brunogge/__init__.py,sha256=_u8TClHjNx5Eee66_nmgrFu-VdQw8P9xoZ-EBipFGSo,275
|
2
|
-
brunogge/barony.py,sha256=6Xm-i5AaXa8oVQ_kzX0_tDZucoBVplF7gYTGuad6djk,14891
|
3
|
-
brunogge/get_ws.py,sha256=nPsvNReq4DzflvOItHOd3WgajAV7f3ckeZr8qRADYsI,709
|
4
|
-
brunogge/getconfig.py,sha256=6mSdy_udDDSSZaxe7y_zwI8nT-hkUdOngh8nM7A1kGg,9438
|
5
|
-
brunogge/ggs_stuff.py,sha256=vfjB5shnOHsOgyuUfRrsKs4gOfXsIGvgf_7Gu_Q6yoQ,5080
|
6
|
-
brunogge/just_funcs.py,sha256=H5cuxNYnWrs7hgr4XCM7RZRkcbFUuAiS306vIx_4nWI,3956
|
7
|
-
brunogge/server_list.json,sha256=5hZrlPH7tbFY7m1bqMMgsKiyHkGiPTnVMAW2B9WLabc,5084
|
8
|
-
brunogge-0.1.7.dist-info/METADATA,sha256=k7YezRzDfxQ6iK8XKwL4fNymlfdK_EO3Rp27Q20t8uk,328
|
9
|
-
brunogge-0.1.7.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
10
|
-
brunogge-0.1.7.dist-info/top_level.txt,sha256=oTTOxi0gm7TPhnipjl1nIXsYLRrnWnDzKKLCfRVhAjw,9
|
11
|
-
brunogge-0.1.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|