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/attachments/28152988/img_4b0d965229.png
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
(
)
:
(
'Bot connected'
)
@bot.command
(
pass_context
=
True
)
async
def
hello
(
ctx
)
:
await
ctx
.
send
(
'Привет. Я ботяра'
)
bot
.
run
(
TOKEN
)
и крч такая ошибка
https://forum.antichat.xyz/attachments/28152988/img_4b0d965229.png