mirror of
https://wiilab.wiimart.org/wiimart/WiiMartBot
synced 2025-09-02 19:41:03 +02:00
added safetey
This commit is contained in:
parent
402dfa0370
commit
55195c1b6c
5
bot.py
5
bot.py
@ -322,6 +322,9 @@ async def geterror(ctx, errorcode: commands.Range[int, 204000, 250943]):
|
||||
errormessage = "Error Code was not found."
|
||||
await ctx.send(errormessage)
|
||||
|
||||
os.remove("error_codes.db")
|
||||
try:
|
||||
os.remove("error_codes.db")
|
||||
except Exception as e:
|
||||
print("i cant let you do that dave...")
|
||||
create_database()
|
||||
bot.run(token)
|
Loading…
x
Reference in New Issue
Block a user