changed bot stop/shutdown command
Signed-off-by: SpagettiFisch <johmewu@gmail.com>
This commit is contained in:
parent
4a091fd9fd
commit
6bf0b1e84b
2 changed files with 2 additions and 2 deletions
2
main.py
2
main.py
|
|
@ -46,6 +46,4 @@ async def allow(ctx:slash.Context, user:slash.Option(description="der zu whiteli
|
|||
if await functions.isMod(ctx, bot):
|
||||
await functions.cmdallow(ctx, user.strip(), bot)
|
||||
|
||||
|
||||
|
||||
bot.run(token)
|
||||
|
|
@ -3,6 +3,7 @@ import json
|
|||
import requests
|
||||
import urllib
|
||||
import random
|
||||
import asyncio
|
||||
|
||||
from os import path
|
||||
from shutil import copyfile
|
||||
|
|
@ -67,6 +68,7 @@ async def cmdshutdown(ctx:slash.Context, bot):
|
|||
print('Start logging out')
|
||||
await bot.logout()
|
||||
bot.clear()
|
||||
asyncio.run(bot.close())
|
||||
print('Log Out succesful\nExiting')
|
||||
exit()
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue