发送两条特殊的命名消息后如何采取措施

时间:2020-04-20 19:48:10

标签: python-3.x discord webhooks discord.py discord.py-rewrite

我现在不在哪里可以找到执行此操作的脚本。我想发出命令,在两条特殊命名的消息执行操作后,这是我尝试的操作:

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

0 个答案:

没有答案