2021-06-12 12:53:51 +02:00
|
|
|
module.exports = {
|
|
|
|
name: "work",
|
|
|
|
description: "Work to earn money",
|
|
|
|
category: "Economy",
|
|
|
|
timeout: 1000 * 60 * 10,
|
2021-09-17 18:28:39 +02:00
|
|
|
run: async (client, interaction, args, utils) => {
|
2021-06-12 12:53:51 +02:00
|
|
|
const job = [
|
|
|
|
"Software engineer",
|
|
|
|
"Programmer",
|
|
|
|
"Teacher",
|
|
|
|
"YouTuber",
|
|
|
|
"Student",
|
|
|
|
"Desginer",
|
|
|
|
"Editor",
|
|
|
|
"Banker",
|
|
|
|
];
|
2021-09-17 18:28:39 +02:00
|
|
|
const earning = utils.rndint(5000, 3000);
|
2021-06-12 12:53:51 +02:00
|
|
|
const jobs = job[Math.floor(Math.random() * job.length)];
|
2021-09-17 18:28:39 +02:00
|
|
|
await client.add(interaction.user.id, earning, interaction);
|
|
|
|
interaction.followUp({
|
|
|
|
content: `You worked as a **${jobs}** and earned **${earning}${client.currency}**`,
|
|
|
|
});
|
2021-06-12 12:53:51 +02:00
|
|
|
},
|
|
|
|
};
|