mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
23 lines
407 B
JavaScript
23 lines
407 B
JavaScript
const Command = require('../../framework/Command');
|
|
|
|
module.exports = class HiCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'hi',
|
|
aliases: ['hello', 'hey', 'hoi', 'hola'],
|
|
group: 'single',
|
|
memberName: 'hi',
|
|
description: 'Hello.'
|
|
});
|
|
}
|
|
|
|
async run(msg) {
|
|
try {
|
|
await msg.react('👋');
|
|
return null;
|
|
} catch {
|
|
return msg.reply('Hi there!');
|
|
}
|
|
}
|
|
};
|