阅读嵌入消息

时间:2020-06-16 18:38:08

标签: python discord embed discord.py monitor

我如何使用python阅读不和谐的嵌入式消息?邮件嵌入后,它不会选择关键字。

import discord
from discord.ext import commands
import os

client = discord.Client()

keywords = ['yeezy 500', 'yeezy 350', 'yeezy 700', 'jordan og', 'jordan 1 low', 'aj 1 low', 'jordan 1 mid', 'jordan 1 high', 'nike x cactus jack']
monitor_channels = [channelid, channelid]

async def on_ready():
    print('Bot is ready')

@client.event
async def on_message(message):
    channel = message.channel
    for keyword in keywords:
        if keyword.lower() in message.content.lower() and message.channel.id in monitor_channels:
            await channel.send('<@&719156315045363719>')
            break

client.run(os.environ['TOKEN'])```

0 个答案:

没有答案