new command format
This commit is contained in:
parent
a5c7aaef5f
commit
b898f170e7
2 changed files with 22 additions and 23 deletions
22
bot/commands/Test/hello.js
Normal file
22
bot/commands/Test/hello.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
module.exports = class {
|
||||
constructor (name, category) {
|
||||
this.name = name,
|
||||
this.category = category,
|
||||
this.enabled = true,
|
||||
this.guildOnly = false,
|
||||
this.devOnly = false,
|
||||
this.aliases = [],
|
||||
this.userPerms = [],
|
||||
this.botPerms = [],
|
||||
this.cooldown = 2000,
|
||||
this.help = {
|
||||
description: 'Say hi!',
|
||||
usage: 'hello',
|
||||
examples: null
|
||||
};
|
||||
}
|
||||
|
||||
run (client, message, args, data) { // eslint-disable-line no-unused-vars
|
||||
return client.createMessage(message.channel.id, `Hello, ${message.author}!`);
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue