Affirmation Command

This commit is contained in:
Dragon Fire
2021-04-23 10:59:30 -04:00
parent 35380fd21b
commit 2e8e89e582
3 changed files with 75 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
const Command = require('../../structures/Command');
const affirmations = require('../../assets/json/affirmation');
module.exports = class AffirmationCommand extends Command {
constructor(client) {
super(client, {
name: 'affirmation',
group: 'random-res',
memberName: 'affirmation',
description: 'Responds with a random affirmation.',
credit: [
{
name: 'Tilde Ann Thurium',
url: 'https://github.com/annthurium',
reason: 'Affirmations Data',
reasonURL: 'https://github.com/annthurium/affirmations/blob/master/affirmations.js'
}
]
});
}
run(msg) {
return msg.say(affirmations[Math.floor(Math.random() * affirmations.length)]);
}
};