2019-12-27 17:11:56 +00:00
|
|
|
const Command = require('../../src/structures/Command');
|
|
|
|
module.exports = class Daily extends Command {
|
|
|
|
constructor() {
|
|
|
|
super({
|
|
|
|
name: 'daily',
|
|
|
|
description: 'Get your Dailies',
|
|
|
|
aliases: ['d'],
|
|
|
|
module: 'Economy',
|
|
|
|
cooldown: 5,
|
|
|
|
guildOnly: true,
|
|
|
|
developerOnly: true,
|
|
|
|
nsfw: false
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async command(ctx) {
|
|
|
|
ctx.utils.eco.Dailies().then(r => {
|
2020-01-03 16:27:32 +00:00
|
|
|
ctx.send(`**${r.amount}**<:coin:574116462260912138> has been added to your bank.`)
|
2019-12-27 17:11:56 +00:00
|
|
|
}).catch(error => ctx.send(`You can get your dailies in ${error.message}`))
|
|
|
|
}
|
2020-01-03 16:27:32 +00:00
|
|
|
}
|