added safetey

This commit is contained in:
shadowinged 2025-03-20 15:58:14 -04:00
parent 402dfa0370
commit 55195c1b6c

5
bot.py
View File

@ -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)