Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
fix discord status, fix update order
Browse files Browse the repository at this point in the history
  • Loading branch information
tumGER committed Sep 14, 2019
1 parent 9d22c28 commit 8346aeb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
19 changes: 10 additions & 9 deletions BETCH.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ def convert(sanity):
if not sanity: # When I want to manually convert it
modules = load()

# Nintendo's official error pages #

for err in switch_support_page.keys():
module = int(err[0:4]) - 2000
desc = int(err[5:9])

updatedict(module, desc, switch_support_page[err])

# Special/Non-Switchbrew Error Codes #

for oerr in special_err.keys():
Expand All @@ -106,13 +114,6 @@ def convert(sanity):
desc = (errcode >> 9) & 0x3FFF

updatedict(module, desc, special_err[oerr])

# Nintendo's official error pages #

for err in switch_support_page.keys():
module = int(err[0:4]) - 2000
desc = int(err[5:9])

updatedict(module, desc, switch_support_page[err])

dump(modules)
if not sanity:
dump(modules)
Binary file modified data/errcodes.pkl
Binary file not shown.
2 changes: 1 addition & 1 deletion discord_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async def error_updater():
async def c_status():
await bot.wait_until_ready()
while True:
await bot.change_presence(activity=discord.Activity(name=f"{random.choice(status_q)} | .err"), status=discord.Status.dnd)
await bot.change_presence(activity=discord.Activity(name=f"{random.choice(status_q)} | .err", type=2), status=discord.Status.dnd)
await asyncio.sleep(1800)

@bot.event
Expand Down

0 comments on commit 8346aeb

Please sign in to comment.