【发布时间】:2021-05-25 01:32:18
【问题描述】:
我的信息是(Hello World!)
和命令(/spam Hello World)
还有终端:(对不起,我不能复制粘贴它,因为我的终端不能复制它)
我的代码:
@commands.command(description="you want spam but you slow typing? use this command")
async def spam(self, ctx, messages, amount : int):
limit = 30
print(f'bot spam amount : "{amount}" msg : "{message}"')
if amount > limit:
await ctx.send('spam count exceeded the limit (30)')
print('not spamming')
else:
print('spamming')
for _ in range(amount):
await ctx.send(message)
【问题讨论】:
标签: python discord.py error-code