Код:
import pymongo
import disnake
from disnake.ext import commands
import settings
bot = commands.Bot(intents=disnake.Intents.all(), status=disnake.Status.idle)
bot.remove_command('help')
@bot.event
async def on_ready(member: bot.user):
print(f"{member.name} запушен!")
if __name__ == "__main__":
bot.start(token=settings.config.bot_token)
bot.load_extension(f'cogs.login')
Ошибка:
RuntimeWarning: coroutine 'Client.start' was never awaited
bot.start(token=settings.config.bot_token)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback