So I'm trying to make a discord.py bot that will respond to embeds with the words "procrastinate" "Procrastination" and "procrastinating" I'm trying to use a method where the bot will (hopefully) detect these words in any embed and reply to the embed with "no u" (silly, I know)
this is my current code right now:
import discord import os client = discord.Client() @client.event async def on_message(message): if text in message.content or any(embed_contains(embed, "procastination", "procasting", "procrastination", "procrasting", "do") for embed in message.embeds): await message.channel.send ("no u")
Is there a more effective way of going about this? Thanks
https://stackoverflow.com/questions/66847834/detecting-embeds-in-discord-py March 29, 2021 at 09:48AM
没有评论:
发表评论