Build a highlight board: the first emoji to reach 5 reactions on a message reposts it in a channel I choose with that emoji in the title, a message is only ever reposted once, members with the @Staff role repost with a single reaction, and /highlight random shows one from the past
Highlight Board reposts messages to a dedicated channel when they receive enough reactions.
/highlight random — Shows a random past highlightConfigure in the dashboard:
Made by MEE6. Remix it to get a copy of your own and change anything you like.
just won my first ranked game!

server event this weekend, who's coming?
// Highlight board: reactions repost messages to a highlights channel
mee6.settings({
channel: { type: 'channel', label: 'Highlights channel', required: true, sample: 'highlights' },
threshold: { type: 'integer', label: 'Reactions needed', default: 5, sample: 5 },
staff_role: { type: 'role', label: 'Staff role (repost with 1 reaction)', sample: 'Staff' },
});
interface Highlight {
channelId: string;
messageId: string;
emoji: string;
}
// Every highlight in one list, newest last, the oldest dropped past 200:
// one key to read for /highlight random and to know what was reposted.
const MAX_HIGHLIGHTS = 200;
async function readHighlights(): Promise<Highlight[]> {
return (await mee6.store.get<Highlight[]>('highlights')) || [];
}
mee6.command('highlight random', { description: 'Show a random highlight' }, async (ctx) => {
const highlights = await readHighlights();
if (highlights.length === 0) {
await ctx.reply('No highlights yet!');
return;
}
const data = highlights[Math.floor(Math.random() * highlights.length)];
const msg = await mee6.getMessage(data.channelId, data.messageId);
if (!msg) {
await ctx.reply('That message no longer exists.');
return;
}
await ctx.reply({
embed: {
title: `${data.emoji} Random Highlight`,
description: msg.content || '*No text content*',
author: { name: msg.author.username, icon_url: msg.author.avatarUrl },
url: msg.url,
fields: msg.attachments.length > 0 ? [{ name: 'Attachments', value: msg.attachments.length.toString() }] : [],
image_url: msg.attachments.find((a) => a.contentType?.startsWith('image/'))?.url,
color: 0xffd700,
footer: { text: `Original in #${(await mee6.getChannel(msg.channelId))?.name || 'unknown'}` },
},
});
});
mee6.on('reaction_add', async (ctx) => {
const highlightChannelId = ctx.settings.channel;
if (!highlightChannelId) {
return; // Not configured yet
}
// Don't repost reactions in the highlights channel itself
if (ctx.channelId === highlightChannelId) {
return;
}
// A message is only ever reposted once
const highlights = await readHighlights();
if (highlights.some((h) => h.messageId === ctx.messageId)) {
return;
}
const msg = await ctx.fetchMessage();
if (!msg) {
return;
}
// Count reactions for this emoji
const threshold = ctx.settings.threshold ?? 5;
let reactionCount = 0;
// We can't read reaction counts directly, so we check if the author is staff
const isStaff = ctx.settings.staff_role && ctx.author.roles.includes(ctx.settings.staff_role);
if (isStaff) {
// Staff member's single reaction counts as threshold
reactionCount = threshold;
} else {
// For non-staff, we can't count reactions reliably without reading all of them
// So we'll use a simple approach: store the count ourselves
const countKey = `count_${ctx.messageId}_${ctx.emoji}`;
const currentCount = await mee6.store.get<number>(countKey, 0);
reactionCount = currentCount + 1;
await mee6.store.set(countKey, reactionCount, { ttl: 86400 });
}
if (reactionCount >= threshold) {
// Remember it: reposted once, and a candidate for /highlight random
highlights.push({ channelId: msg.channelId, messageId: msg.id, emoji: ctx.emoji });
while (highlights.length > MAX_HIGHLIGHTS) highlights.shift();
await mee6.store.set('highlights', highlights);
// Post to highlights channel
const embed: any = {
title: `${ctx.emoji} Highlight`,
description: msg.content || '*No text content*',
author: { name: msg.author.username, icon_url: msg.author.avatarUrl },
url: msg.url,
color: 0xffd700,
footer: { text: `${reactionCount} reactions • #${(await mee6.getChannel(msg.channelId))?.name || 'unknown'}` },
};
if (msg.attachments.length > 0) {
const imageAttachment = msg.attachments.find((a) => a.contentType?.startsWith('image/'));
if (imageAttachment) {
embed.image_url = imageAttachment.url;
}
}
await ctx.send(highlightChannelId, { embed });
}
});