When someone replies to a message with just the word "quote", repost the message they replied to as an embed crediting its author, with its picture if it had one and a link to the original
Reply to any message with the word quote to repost it as a styled embed, crediting the original author with their avatar. If the message had an image, it's included. A link to the original message is added, and the trigger message is automatically deleted to keep the channel clean.
Made by MEE6. Remix it to get a copy of your own and change anything you like.

I think we should organize a movie night this weekend!

// Quote messages by replying with "quote"
mee6.on('message', { startsWith: ['quote'] }, async (ctx) => {
// The filter wakes the module for "quote…"; act only on exactly "quote" (case-insensitive)
if (ctx.message.content.trim().toLowerCase() !== 'quote') return;
// Check if this is a reply to another message
if (!ctx.message.referencedMessageId) {
await ctx.reply('Reply to a message with "quote" to quote it.');
return;
}
// Fetch the message being quoted
const quoted = await mee6.getMessage(ctx.channelId, ctx.message.referencedMessageId);
if (!quoted) {
await ctx.reply('I could not find the message you are trying to quote.');
return;
}
// Build the embed
const embed: any = {
description: quoted.content || '*No text content*',
color: '#5865f2',
author: {
name: quoted.author.displayName,
icon_url: quoted.author.avatarUrl,
},
footer: {
text: `Quoted by ${ctx.author.displayName}`,
},
timestamp: new Date().toISOString(),
};
// Add the first image attachment if there is one
if (quoted.attachments && quoted.attachments.length > 0) {
const image = quoted.attachments.find((a) => a.contentType?.startsWith('image/'));
if (image) {
embed.image_url = image.url;
}
}
// Post the quote with a link to the original
await ctx.send(ctx.channelId, {
content: `[Jump to original](${quoted.url})`,
embed,
});
// Delete the "quote" trigger message to keep the channel clean
await ctx.delete();
});