【发布时间】:2021-04-15 18:04:00
【问题描述】:
抱歉,措辞奇怪,我不太确定如何描述我的问题,但我会尽力而为。我正在尝试在我的不和谐机器人中创建一个 sudo 命令例如,我正在尝试创建它以便我可以激活我的 #clear 命令。但是,我的机器人只是写了#clear,并且该命令不起作用。有没有办法让机器人使用#clear?很抱歉措辞奇怪,如果无法阅读,我可以尝试重写。
@commands.command()
async def sudo(self, ctx, *, substance):
"""Get the bot to say something for you."""
await ctx.send(f"{substance}")
【问题讨论】:
标签: python discord discord.py sudo