/rep gives one reputation point to another member once a day, /reputation shows someone’s total, and /reptop ranks the most respected members
A reputation system where members can give each other one reputation point per day with /rep @someone. Use /reputation to check someone's total or /reptop to see the most respected members in the server.
The 24-hour cooldown prevents spam while encouraging regular positive recognition. Members cannot give reputation to themselves or bots.
Made by MEE6. Remix it to get a copy of your own and change anything you like.
✨ You gave Alex a reputation point! They now have 1 reputation.
✨ You gave Alex a reputation point! They now have 2 reputation.
✨ You gave Jordan a reputation point! They now have 1 reputation.
⭐ 2 reputation points
⭐ 0 reputation points
🥇 Alex — 2 reputation 🥈 Jordan — 1 reputation
⏰ You can give reputation again in 24h 0m.
// Reputation System — members give each other reputation points
mee6.command(
'rep',
{
description: 'Give a reputation point to someone (once per day)',
options: [{ name: 'user', type: 'user', description: 'Who to give reputation to', required: true }],
},
async (ctx) => {
const targetId = ctx.option<string>('user');
// Cannot give reputation to yourself
if (targetId === ctx.author.id) {
await ctx.reply({ content: '❌ You cannot give reputation to yourself.', ephemeral: true });
return;
}
// Cannot give reputation to bots
const target = await mee6.getMember(targetId);
if (!target) {
await ctx.reply({ content: '❌ That member was not found.', ephemeral: true });
return;
}
if (target.bot) {
await ctx.reply({ content: '❌ You cannot give reputation to bots.', ephemeral: true });
return;
}
// Check cooldown (24 hours = 86400 seconds)
const giver = mee6.store.member(ctx.author.id);
const lastGiven = await giver.get<number>('rep_last_given', 0);
const now = Math.floor(Date.now() / 1000);
const cooldown = 86400;
if (now - lastGiven < cooldown) {
const remaining = cooldown - (now - lastGiven);
const hours = Math.floor(remaining / 3600);
const minutes = Math.floor((remaining % 3600) / 60);
await ctx.reply({
content: `⏰ You can give reputation again in ${hours}h ${minutes}m.`,
ephemeral: true,
});
return;
}
// Give the reputation point
const receiver = mee6.store.member(targetId);
const newTotal = await receiver.incr('reputation', 1);
await giver.set('rep_last_given', now);
await ctx.reply(
`✨ You gave **${target.displayName}** a reputation point! They now have **${newTotal}** reputation.`
);
}
);
mee6.command(
'reputation',
{
description: "Check someone's reputation",
options: [{ name: 'user', type: 'user', description: 'Who to check (leave blank for yourself)' }],
},
async (ctx) => {
const targetId = ctx.option<string>('user') || ctx.author.id;
const target = await mee6.getMember(targetId);
if (!target) {
await ctx.reply({ content: '❌ That member was not found.', ephemeral: true });
return;
}
const member = mee6.store.member(targetId);
const reputation = await member.get<number>('reputation', 0);
await ctx.reply({
embed: {
title: `${target.displayName}'s Reputation`,
description: `⭐ **${reputation}** reputation point${reputation === 1 ? '' : 's'}`,
color: '#FFD700',
thumbnail_url: target.avatarUrl,
},
});
}
);
mee6.command('reptop', { description: 'Show the most respected members' }, async (ctx) => {
const top = await mee6.store.memberTop('reputation', 10);
if (top.length === 0) {
await ctx.reply('No one has reputation yet. Use `/rep @someone` to give the first point!');
return;
}
const lines = await Promise.all(
top.map(async (entry, index) => {
const member = await mee6.getMember(entry.user_id);
const name = member ? member.displayName : 'Unknown Member';
const medal = index === 0 ? '🥇' : index === 1 ? '🥈' : index === 2 ? '🥉' : `${index + 1}.`;
return `${medal} **${name}** — ${entry.value} reputation`;
})
);
await ctx.reply({
embed: {
title: '⭐ Reputation Leaderboard',
description: lines.join('\n'),
color: '#FFD700',
},
});
});