【发布时间】:2021-03-24 15:57:25
【问题描述】:
我在 discord.py 上的 killswitch 似乎没有工作,我也不清楚为什么。有人可以指出我犯的任何错误吗?谢谢。
@client.command(aliases=["shut","shutdown","quit","stop_that","stahp", "kill"])
async def stop(ctx):
await ctx.send("Attention: I have been murdered.")
await client.logout()
【问题讨论】:
-
看起来应该可以了。有没有错误?你能展示更多你的代码吗?
-
这能回答你的问题吗? Bot executing the same command twice
标签: python discord discord.py