We value your privacy
We use cookies to enhance your browsing experience, serve personalized ads or content, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies.
We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.
The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ...
Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.
Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.
No cookies to display.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
/job apply picks one of three jobs, /job work runs a short mini-game (repeat the sequence shown with buttons) and pays according to your job level, five good shifts promote you, a failed sequence loses the shift
A job system where members apply for one of three jobs (chef, mechanic, or artist), then work shifts by completing a 4-button color sequence memory game. Successfully completing a sequence earns coins based on job and level, with pay increasing from 40-250 coins per shift. After 5 consecutive successful shifts, members get promoted through 5 levels: Trainee → Junior → Senior → Expert → Master. Missing a sequence resets promotion progress. Includes a 5-minute cooldown between shifts.
Made by MEE6. Remix it to get a copy of your own and change anything you like.
🎉 Congratulations! You've been hired as a Trainee artist. Use /job work to start a shift!
✅ Perfect! You earned 40 coins. Good shifts: 1/5 (next promotion)
🎉 Congratulations! You've been hired as a Trainee mechanic. Use /job work to start a shift!
❌ Wrong! You needed 🟢. Your promotion progress has been reset.
Position: Trainee artist Balance: 220 coins Progress to next level: 1/5 good shifts
// Job mini-game: Apply for jobs, work shifts with sequence games, get promoted.
interface JobData {
job: string;
level: number;
shifts: number; // consecutive successful shifts
}
const JOBS = ['chef', 'mechanic', 'artist'];
const LEVEL_NAMES = ['Trainee', 'Junior', 'Senior', 'Expert', 'Master'];
const BASE_PAY: Record<string, number> = { chef: 50, mechanic: 60, artist: 40 };
const SHIFTS_FOR_PROMOTION = 5;
// The patterns of a shift, in order: the first shift is always the first
// pattern, so a newcomer can learn the game, and a failed shift starts over.
// Indexes into the four colour buttons: 🔴 0, 🟢 1, 🔵 2, 🟡 3.
const PATTERNS: number[][] = [
[2, 1, 0, 3],
[0, 3, 1, 2],
[3, 3, 0, 1],
[1, 2, 2, 0],
[0, 1, 3, 2],
];
mee6.command('job apply', { description: 'Apply for a job (chef, mechanic, or artist)' }, async (ctx) => {
const m = mee6.store.member(ctx.author.id);
const existing = await m.get<JobData>('job');
if (existing) {
await ctx.reply(`You already work as a ${LEVEL_NAMES[existing.level]} ${existing.job}!`);
return;
}
const job = JOBS[Math.floor(Math.random() * JOBS.length)];
await m.set('job', { job, level: 0, shifts: 0 });
await ctx.reply(`🎉 Congratulations! You've been hired as a Trainee ${job}. Use \`/job work\` to start a shift!`);
});
mee6.command('job work', { description: 'Start a work shift mini-game' }, async (ctx) => {
const m = mee6.store.member(ctx.author.id);
const jobData = await m.get<JobData>('job');
if (!jobData) {
await ctx.reply('You need to apply for a job first! Use `/job apply`.');
return;
}
// Check cooldown
const lastWork = await m.get<number>('cd_work', 0);
const now = Math.floor(Date.now() / 1000);
if (now - lastWork < 300) {
await ctx.reply(`⏰ You're on break! Wait ${300 - (now - lastWork)}s before your next shift.`);
return;
}
// The pattern of this shift: they rotate with the shifts done so far.
const colors = ['🔴', '🟢', '🔵', '🟡'];
const sequence = [...PATTERNS[jobData.shifts % PATTERNS.length]];
const sequenceStr = sequence.map((i) => colors[i]).join(' ');
await ctx.reply({
content: `**Remember this sequence:**\n${sequenceStr}\n\nClick the buttons in order!`,
buttons: [
{ label: '🔴', customId: 'seq_0', style: 'danger' },
{ label: '🟢', customId: 'seq_1', style: 'success' },
{ label: '🔵', customId: 'seq_2', style: 'primary' },
{ label: '🟡', customId: 'seq_3', style: 'secondary' },
],
});
// Store the game state
await mee6.store.set(
`work_${ctx.author.id}`,
{
sequence,
progress: 0,
messageId: null, // will be set on first button click
},
{ ttl: 120 }
);
});
mee6.on('button', async (ctx) => {
if (!ctx.customId.startsWith('seq_')) return;
const m = mee6.store.member(ctx.author.id);
const gameKey = `work_${ctx.author.id}`;
const game = await mee6.store.get<{ sequence: number[]; progress: number; messageId: string | null }>(gameKey);
if (!game) {
await ctx.reply({ content: 'This work shift has expired. Start a new one with `/job work`!', ephemeral: true });
return;
}
const clicked = parseInt(ctx.customId.split('_')[1]);
const expected = game.sequence[game.progress];
if (clicked !== expected) {
// Failed sequence
const jobData = await m.get<JobData>('job');
if (jobData) {
jobData.shifts = 0; // reset progress
await m.set('job', jobData);
}
await mee6.store.delete(gameKey);
await ctx.editOriginal({
content: `❌ Wrong! You needed ${['🔴', '🟢', '🔵', '🟡'][expected]}. Your promotion progress has been reset.`,
buttons: [],
});
return;
}
game.progress++;
if (game.progress === game.sequence.length) {
// Completed successfully!
const jobData = await m.get<JobData>('job');
if (!jobData) {
await ctx.reply({ content: 'Error: No job data found.', ephemeral: true });
return;
}
jobData.shifts++;
const pay = BASE_PAY[jobData.job] * (jobData.level + 1);
// The pay follows the server's Economy boosts like /work
const paid = await mee6.economy.add(ctx.author.id, pay, { boost: 'income' });
let message = `✅ Perfect! You earned **${paid.amount}** coins.\n`;
// Check for promotion
if (jobData.shifts >= SHIFTS_FOR_PROMOTION && jobData.level < LEVEL_NAMES.length - 1) {
jobData.level++;
jobData.shifts = 0;
message += `\n🎊 **PROMOTED!** You're now a **${LEVEL_NAMES[jobData.level]} ${jobData.job}**!`;
} else if (jobData.level < LEVEL_NAMES.length - 1) {
message += `Good shifts: ${jobData.shifts}/${SHIFTS_FOR_PROMOTION} (next promotion)`;
} else {
message += `You're at max level! Shifts completed: ${jobData.shifts}`;
}
await m.set('job', jobData);
await m.set('cd_work', Math.floor(Date.now() / 1000));
await mee6.store.delete(gameKey);
await ctx.editOriginal({
content: message,
buttons: [],
});
} else {
// Continue the sequence
await mee6.store.set(gameKey, game, { ttl: 120 });
const colors = ['🔴', '🟢', '🔵', '🟡'];
const progress = colors
.slice(0, game.progress)
.map((_, i) => colors[game.sequence[i]])
.join(' ');
await ctx.editOriginal({
content: `**Progress:** ${progress} ✓\nKeep going!`,
});
}
});
mee6.command('job status', { description: 'Check your current job and level' }, async (ctx) => {
const m = mee6.store.member(ctx.author.id);
const jobData = await m.get<JobData>('job');
if (!jobData) {
await ctx.reply("You don't have a job yet. Use `/job apply` to get hired!");
return;
}
const balance = await mee6.economy.balance(ctx.author.id);
const nextLevel =
jobData.level < LEVEL_NAMES.length - 1
? `\nProgress to next level: ${jobData.shifts}/${SHIFTS_FOR_PROMOTION} good shifts`
: '\n🏆 Max level reached!';
await ctx.reply({
embed: {
title: '💼 Job Status',
description: `**Position:** ${LEVEL_NAMES[jobData.level]} ${jobData.job}\n**Balance:** ${
balance.coins
} coins${nextLevel}`,
color: '#3498db',
},
});
});