【发布时间】:2021-04-11 07:13:12
【问题描述】:
您好,我想用 Python 制作一个有趣的 Discord 机器人,我写了一个垃圾邮件命令。现在我想做一个新的命令来阻止它。
命令如下:
@commands.command()
async def spam(self,ctx, msg="hi", *, amount=1):
for i in range(0, amount):
await ctx.send(msg)
有没有办法做到这一点?
【问题讨论】:
标签: python command discord bots