mirror of
https://wiilab.wiimart.org/wiimart/WiiMartBot
synced 2025-11-06 15:30:12 +01:00
Make user not get timeout when getting the status
This commit is contained in:
parent
88362f4ea5
commit
c453b51d2c
3
bot.py
3
bot.py
@ -322,7 +322,7 @@ error_codes = {
|
||||
"206601": "Authentication error, missing required parameters",
|
||||
"206651": "Mistake while entering the console's serial number",
|
||||
"206663": "An operation is in progress",
|
||||
"250943": "Problems with your Club Nintendo account. It can't get connected with your shop account", // is this correct actually?
|
||||
"250943": "Problems with your Club Nintendo account. It can't get connected with your shop account",
|
||||
"206653": "Nickname or password wrong",
|
||||
"206660": "No progress was made in the last operation",
|
||||
"241000": "Not enough RAM",
|
||||
@ -587,6 +587,7 @@ def check_url(uri):
|
||||
|
||||
@bot.hybrid_command(name="status",description="Gets the status of WiiMart")
|
||||
async def statusy(ctx):
|
||||
await ctx.defer()
|
||||
check_url(url)
|
||||
if status == "Not Set":
|
||||
await ctx.send(f"WiiMart Status: {url_status}\nAdmin Status: :person_shrugging: Currently Unset")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user