我正在尝试使用discord.py
创建一个discord bot。对于我的discord服务器,我有非常基本的代码,可以让bot联机,但只是打开然后崩溃
import discord
@client.event
asnyc def on_ready():
print 'bot read`enter code here`y'
client.run('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
我确实有代币,通常我只是不想泄露。我感谢所有的帮助
Tags:
我找到了一个很好的tutorial来在python中创建一个discord bot。因此,您可以使用以下代码创建连接:
我建议将文件从“discord”重命名为“bot”或其他名称,这样就不会与导入冲突
相关问题 更多 >
编程相关推荐