我现在不在哪里可以找到执行此操作的脚本。我想发出命令,在两条特殊命名的消息执行操作后,这是我尝试的操作:
if message.content.startswith('g_voting'):
await message.delete()
webhook = DiscordWebhook(url=webhook_urls, username="good bot", avatar_url="https://cdn.raidforums.com/uploads/avatars/avatar_121387366.png?dateline=1509129798" )
embed = DiscordEmbed(title='command vote', description='(2 votes = action)', color=242424)
gg=1
webhook.add_embed(embed)
response = webhook.execute()
await asyncio.sleep(60)
if message.content.startswitch('g_vote') > gg:
print('works')
return