
03.02.2023, 08:24
|
|
Познающий
Регистрация: 24.05.2019
Сообщений: 34
С нами:
3670669
Репутация:
73
|
|
Должно работать
Python:
Код:
def
choice
(
message
)
:
if
message
==
'y'
:
current
=
koloda
.
pop
(
)
return
'Вам попалась карта достоинством %d'
%
current
else
:
return
'Вы не взяли карту'
@client.event
async
def
on_message
(
message
)
:
if
message
.
author
==
client
.
user
:
return
response
=
choice
(
message
.
content
)
await
message
.
channel
.
send
(
response
)
|
|
|