When a member gains the @Server Booster role, thank them publicly in a channel I choose with their avatar and give them the @VIP role; take it back when they lose the booster role
Automatically rewards members who boost your server.
When someone boosts:
When they stop boosting, the VIP role is automatically removed.
Configure the thank-you channel, the booster role to watch, and the VIP role to give in the Settings tab.
Made by MEE6. Remix it to get a copy of your own and change anything you like.
@Jordan just boosted the server! They've been given the VIP role.
// Booster rewards: thank boosters in a channel and give/remove VIP role
mee6.settings({
thanks_channel: { type: 'channel', label: 'Channel for booster thanks', required: true, sample: 'announcements' },
booster_role: { type: 'role', label: 'Server Booster role', required: true, sample: 'Booster' },
vip_role: { type: 'role', label: 'VIP role to give boosters', required: true, sample: 'Vip' },
});
mee6.on('member_update', async (ctx) => {
const thanksChannelId = ctx.settings.thanks_channel;
const boosterRoleId = ctx.settings.booster_role;
const vipRoleId = ctx.settings.vip_role;
if (!thanksChannelId || !boosterRoleId || !vipRoleId) {
return; // not configured yet
}
// Check if they just gained the booster role
if (ctx.addedRoles.includes(boosterRoleId)) {
await ctx.addRole(vipRoleId);
await ctx.send(thanksChannelId, {
embed: {
title: '๐ Thank you for boosting!',
description: `${ctx.author.mention} just boosted the server! They've been given the VIP role.`,
color: '#ff73fa',
thumbnail_url: ctx.author.avatarUrl,
},
});
}
// Check if they lost the booster role
if (ctx.removedRoles.includes(boosterRoleId)) {
await ctx.removeRole(vipRoleId);
}
});