Add /confess, a private command that posts the text anonymously in a channel I choose as a numbered embed and opens a thread for replies, and /whoconfessed which lets members with the @Staff role look up who sent confession number N
Let members share anonymous confessions in a dedicated channel. Each confession is numbered, posted as an embed with a reply thread, and only staff can look up who sent which confession.
How to use:
/confess — Post an anonymous confession (private command)/whoconfessed — Look up who sent confession #N (staff only)Setup: Configure the confessions channel and staff role in the dashboard.
Made by MEE6. Remix it to get a copy of your own and change anything you like.
I think pineapple on pizza is actually amazing
I've never seen Star Wars and I don't plan to
// Anonymous confessions: members post anonymously, staff can look up authors
mee6.settings({
channel: {
type: 'channel',
label: 'Confessions channel',
required: true,
sample: 'confessions',
},
staff_role: {
type: 'role',
label: 'Staff role (can look up confession authors)',
required: true,
sample: 'Staff',
},
});
mee6.command(
'confess',
{
description: 'Post an anonymous confession',
ephemeral: true,
options: [
{
name: 'text',
type: 'string',
description: 'Your confession',
required: true,
},
],
},
async (ctx) => {
const text = ctx.option<string>('text');
const channelId = ctx.settings.channel;
const staffRole = ctx.settings.staff_role;
if (!channelId) {
await ctx.reply('No confessions channel is set — ask an admin to choose one in the dashboard.');
return;
}
if (!staffRole) {
await ctx.reply('No staff role is set — ask an admin to choose one in the dashboard.');
return;
}
// Get the next confession number
const number = await mee6.store.incr('confession_count');
// Store who made this confession
await mee6.store.set(`confession_${number}`, ctx.author.id);
// Post the confession
const sent = await ctx.send(channelId, {
embed: {
title: `Confession #${number}`,
description: text,
color: '#5865F2',
footer: { text: 'Anonymous' },
},
});
// Create a thread for replies
await mee6.createThread(channelId, `Confession #${number} replies`, {
messageId: sent.messageId,
autoArchiveMinutes: 1440,
});
await ctx.reply(`✅ Your confession (#${number}) has been posted anonymously.`);
}
);
mee6.command(
'whoconfessed',
{
description: 'Look up who sent a confession (staff only)',
options: [
{
name: 'number',
type: 'integer',
description: 'Confession number',
required: true,
},
],
},
async (ctx) => {
const number = ctx.option<number>('number');
const staffRole = ctx.settings.staff_role;
if (!staffRole) {
await ctx.reply({ content: 'No staff role is configured.', ephemeral: true });
return;
}
// Check if the member has the staff role
if (!ctx.author.roles.includes(staffRole)) {
await ctx.reply({ content: '❌ You need the staff role to use this command.', ephemeral: true });
return;
}
// Look up the confession author
const authorId = await mee6.store.get<string>(`confession_${number}`);
if (!authorId) {
await ctx.reply({ content: `Confession #${number} not found.`, ephemeral: true });
return;
}
const member = await mee6.getMember(authorId);
const username = member ? member.username : `Unknown user (${authorId})`;
await ctx.reply({
content: `🔍 Confession #${number} was sent by **${username}** (<@${authorId}>)`,
ephemeral: true,
});
}
);