I have been trying to get the contents of a message in Discord.py so I can display it at the bottom of the message my bot sends back. Every example I have seen online has been to check for certain phrases to trigger a command but not to print the message back.
import discord
from discord.ext import commands
bot = commands.Bot(command_prefix="=", intents=discord.Intents.all())
@bot.event
async def on_ready():
print("The bot is now running.")
@bot.command()
async def copycat(ctx):
embed = discord.Embed(title="Copy Cat", description=message.content, color=0x3cc13c)
await ctx.send(embed=embed)
bot.run(TOKEN)
New contributor
Zyzzyx 914 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.