sergree / DolboNet

🤪 Русскоязычный чат-бот для Discord на архитектуре Transformer
GNU General Public License v3.0
58 stars 17 forks source link

'CheckingClient' object has no attribute 'logout' #23

Closed AnUser1 closed 1 year ago

AnUser1 commented 1 year ago

При запуске бота, вылазит эта ошибка, что делать? И как можно пофиксить?

Traceback (most recent call last):
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 409, in _run_event
    await coro(*args, **kwargs)
  File "/home/runner/Dolbonet/core/checking_client.py", line 13, in on_ready
    await self.logout()
AttributeError: 'CheckingClient' object has no attribute 'logout'
sergree commented 1 year ago

Да, надо бы обновить код под discord.py 2, займусь как появится время..

а пока можно попробовать откатиться до 1.7.3: python3 -m pip uninstall discord.py python3 -m pip install discord.py==1.7.3

sergree commented 1 year ago

Исправлено в https://github.com/sergree/DolboNet/commit/9e16f154f24247967c241439a89c7040c0d13087

1) Заново скачайте код бота 2) Включите Message Content Intent в настройках аккаунта бота Message Content Intent 3) Пробуйте снова