ANTICHAT

ANTICHAT (https://forum.antichat.xyz/index.php)
-   Общие вопросы программирования (https://forum.antichat.xyz/forumdisplay.php?f=206)
-   -   Трабл с дискорд ботом (https://forum.antichat.xyz/showthread.php?t=1451248)

vladsharik 22.09.2022 13:58

Не понимаю почему бот не запускается, вроде так всё, хотя хз

Python:





Код:

import
discord
from
discord
.
ext
import
commands

TOKEN
=
'api'
bot
=
commands
.
Bot
(
command_prefix
=
"!"
,
help_command
=
None
,
intents
=
discord
.
Intents
.
all
(
)
)
@bot.event
async
def
on_ready
(
)
:
print
(
'Bot connected'
)
@bot.command
(
pass_context
=
True
)
async
def
hello
(
ctx
)
:
await
ctx
.
send
(
'Привет. Я ботяра'
)
bot
.
run
(
TOKEN
)



и крч такая ошибка





https://forum.antichat.xyz/attachmen...4b0d965229.png

munnniisss 22.09.2022 14:47

бро, учись читать traceback и учи английский! у тебя с токеном проблемы


Время: 20:24