diff --git a/main.py b/main.py index ea5d9d0..3600b48 100644 --- a/main.py +++ b/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) \ No newline at end of file diff --git a/modules/functions.py b/modules/functions.py index a2de05b..a3b2dd8 100644 --- a/modules/functions.py +++ b/modules/functions.py @@ -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: