thaldrin/DiscordModules/Economy/daily.js

22 lines
659 B
JavaScript
Raw Normal View History

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 => {
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}`))
}
}