Skip to content

Commit

Permalink
fixed #8 & removed token
Browse files Browse the repository at this point in the history
  • Loading branch information
s0lst1ce committed May 1, 2019
1 parent 4985b27 commit a880c2f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions executioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@
#########################################


#command that lets admin update the bot without shutting it down
@bot.command()
@commands.has_any_role(*ADMIN_ROLE)
async def reload(ctx, extension:str):
try:
bot.reload_extension(extension)
except Exception as e:
raise ctx.send("Couldn't reload extension {} because:```python\n{}```".format(extension, e))




bot.load_extension("BotEssentials")
bot.load_extension("Role")
bot.load_extension("Slapping")
Expand Down
2 changes: 1 addition & 1 deletion settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


PREFIX = "::"
TOKEN = "NTYzODQ4MDcxMjE0MjY4NDI5.XMjofQ.c0Chs2b0q4Wjp2yqh3MuWfhDU0M"
TOKEN = "your_token"
AUTHOR_ID=289426079544901633

#can be both str and discord snowflake IDs.
Expand Down

0 comments on commit a880c2f

Please sign in to comment.