助けてほしいです。discordbotの起動したところ、トラブルが起きてしまいました、、、
環境
Python3.10
JupyterNotebook
import discord
TOKEN='botのトークン'
client=discord.Client()
@client.event
async def on_ready():
print('ログインしました')
@client.event
async def on_message(message):
if message.author.bot:
return
if message.content=='/neko': await message.channel.send('にゃーん')
client.run('botのトークン')
とコマンドを入力したところ、1回目は、error:can't stop a running event loop()となり、再度実行したところ、JupyterNotebookが固まって[*]になってしまいました。
1度はできたので余計もやもやしています、助けてください。

あなたの回答
tips
プレビュー