30 lines
793 B
JavaScript
30 lines
793 B
JavaScript
|
const { Client, Message, MessageEmbed } = require("discord.js");
|
||
|
require("../../inlinereply");
|
||
|
module.exports = {
|
||
|
name: "work",
|
||
|
description: "Work to earn money",
|
||
|
category: "Economy",
|
||
|
timeout: 1000 * 60 * 10,
|
||
|
/**
|
||
|
* @param {Client} client
|
||
|
* @param {Message} message
|
||
|
* @param {String[]} args
|
||
|
*/
|
||
|
run: async (client, message, args) => {
|
||
|
const job = [
|
||
|
"Software engineer",
|
||
|
"Programmer",
|
||
|
"Teacher",
|
||
|
"YouTuber",
|
||
|
"Student",
|
||
|
"Desginer",
|
||
|
"Editor",
|
||
|
"Banker",
|
||
|
];
|
||
|
const earning = client.function.rndint(5000, 3000);
|
||
|
const jobs = job[Math.floor(Math.random() * job.length)];
|
||
|
await client.data.add(message.author.id, earning);
|
||
|
return message.inlineReply(`You worked as a ${jobs} and earned ${earning}`);
|
||
|
},
|
||
|
};
|