24 hours after someone joins, DM them asking how their first day went with three buttons (great, ok, lost), post each answer in a channel I choose, and skip the DM if they already left
Automatically DMs new members 24 hours after they join, asking how their first day went with three quick-response buttons (Great, OK, Lost). Each response is posted to a staff channel you configure. Skips members who have already left the server.
Made by MEE6. Remix it to get a copy of your own and change anything you like.
We'd love to hear how your first day in the server went!
// First Day Feedback โ DM new members after 24h and collect their feedback
mee6.settings({
feedback_channel: {
type: 'channel',
label: 'Feedback channel',
required: true,
sample: 'staff-chat',
},
});
// Schedule a DM 24 hours after someone joins
mee6.on('member_join', async (ctx) => {
await mee6.schedule.once(`feedback_${ctx.author.id}`, 86400, {
userId: ctx.author.id,
joinedAt: ctx.author.joinedAt,
});
mee6.log(`Scheduled feedback DM for ${ctx.author.username} in 24 hours`);
});
// Send the DM with buttons
mee6.on('scheduled', async (ctx) => {
if (!ctx.scheduleKey.startsWith('feedback_')) return;
const p = ctx.payload as { userId: string; joinedAt: string | null };
// Check if they're still in the server
const member = await mee6.getMember(p.userId);
if (!member) {
mee6.log(`Member ${p.userId} left before feedback DM`);
return;
}
const delivered = await mee6.dm(p.userId, {
embed: {
title: '๐ How was your first day?',
description: "We'd love to hear how your first day in the server went!",
color: '#5865F2',
},
buttons: [
{ label: '๐ Great!', customId: 'feedback_great', style: 'success' },
{ label: '๐ OK', customId: 'feedback_ok', style: 'primary' },
{ label: '๐ Lost', customId: 'feedback_lost', style: 'secondary' },
],
});
if (!delivered) {
mee6.log(`Could not DM ${member.username} โ DMs are closed`);
}
});
// Handle button responses and post to the feedback channel
mee6.on('button', async (ctx) => {
if (!ctx.customId.startsWith('feedback_')) return;
const feedbackChannel = ctx.settings.feedback_channel;
if (!feedbackChannel) {
await ctx.reply({
content: 'Feedback channel is not configured yet.',
ephemeral: true,
});
return;
}
// Parse the feedback type
const response = ctx.customId.replace('feedback_', '');
const emoji = { great: '๐', ok: '๐', lost: '๐' }[response] || '๐';
const label = { great: 'Great', ok: 'OK', lost: 'Lost' }[response] || response;
// Thank the member
await ctx.editOriginal({
embed: {
title: 'โ
Thanks for your feedback!',
description: 'We appreciate you taking the time to share.',
color: '#57F287',
},
buttons: [], // Remove the buttons
});
// Post to the feedback channel
const guild = await mee6.guild();
await ctx.send(feedbackChannel, {
embed: {
title: `${emoji} First day feedback: ${label}`,
description: `<@${ctx.author.id}> shared how their first day went.`,
color: response === 'great' ? '#57F287' : response === 'ok' ? '#5865F2' : '#FEE75C',
fields: [
{ name: 'Member', value: ctx.author.username, inline: true },
{ name: 'Feedback', value: label, inline: true },
],
footer: { text: guild.name },
thumbnail_url: ctx.author.avatarUrl,
},
});
});