mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Shields.io badge, hi
This commit is contained in:
@@ -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!');
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user