Update database bot.py
This commit is contained in:
parent
e99ceb015f
commit
349be06a2d
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ async def addcharacter(ctx):
|
||||||
pass
|
pass
|
||||||
shutil.make_archive('public/characters', 'zip', 'public/singlecharacter')
|
shutil.make_archive('public/characters', 'zip', 'public/singlecharacter')
|
||||||
await ctx.send("added to database")
|
await ctx.send("added to database")
|
||||||
except BaseException:
|
except Exception:
|
||||||
await ctx.send("something went wrong! this probably means you didn't attach a file or discord api is broken")
|
await ctx.send("something went wrong! this probably means you didn't attach a file or discord api is broken")
|
||||||
|
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ async def addsound(ctx):
|
||||||
pass
|
pass
|
||||||
shutil.make_archive('public/sounds', 'zip', 'public/singlesound')
|
shutil.make_archive('public/sounds', 'zip', 'public/singlesound')
|
||||||
await ctx.send("added to database")
|
await ctx.send("added to database")
|
||||||
except BaseException:
|
except Exception:
|
||||||
await ctx.send("something went wrong! this probably means you didn't attach a file or discord api is broken")
|
await ctx.send("something went wrong! this probably means you didn't attach a file or discord api is broken")
|
||||||
|
|
||||||
@client.command()
|
@client.command()
|
||||||
|
|
Reference in a new issue