Shields.io badge, hi

This commit is contained in:
Daniel Odendahl Jr
2018-04-11 01:08:45 +00:00
parent 0fa42950c8
commit 8226f421af
4 changed files with 72 additions and 2 deletions
+23
View File
@@ -0,0 +1,23 @@
const { Command } = require('discord.js-commando');
module.exports = class HelloWorldCommand extends Command {
constructor(client) {
super(client, {
name: 'hi',
aliases: ['hello', 'hey', 'hoi', 'hola'],
group: 'single',
memberName: 'hi',
description: 'Hello.',
clientPermissions: ['ADD_REACTIONS', 'READ_MESSAGE_HISTORY']
});
}
async run(msg) {
try {
await msg.react('👋');
return null;
} catch (err) {
return msg.reply('Hi there!');
}
}
};