2019-12-27 17:11:56 +00:00
|
|
|
const Command = require('../../src/structures/Command');
|
|
|
|
module.exports = class Work extends Command {
|
|
|
|
constructor() {
|
|
|
|
super({
|
|
|
|
name: 'work',
|
2020-01-03 16:27:32 +00:00
|
|
|
description: 'Work for your money',
|
2019-12-27 17:11:56 +00:00
|
|
|
aliases: [],
|
|
|
|
module: 'Economy',
|
|
|
|
cooldown: 15,
|
|
|
|
guildOnly: true,
|
|
|
|
developerOnly: true,
|
|
|
|
nsfw: false
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async command(ctx) {
|
|
|
|
ctx.utils.eco.quick('work', ctx.author.id).then(r => {
|
|
|
|
ctx.send(r.text)
|
|
|
|
}).catch(error => ctx.send(`Error ${error.message}`))
|
|
|
|
}
|
2020-01-03 16:27:32 +00:00
|
|
|
}
|