Split commands into subdirectories
* Move command files into directories * Edit relative paths * Update gitignore * Finish support for commands in subdir * Split up getCommandFiles into own function * Add support for subdirs on help command
This commit is contained in:
parent
8993eeaf7a
commit
e7cdd425d1
21 changed files with 55 additions and 35 deletions
14
commands/misc/say.js
Normal file
14
commands/misc/say.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
module.exports = {
|
||||
name: 'say',
|
||||
description: 'Repeats arguments',
|
||||
execute({message, args}) {
|
||||
|
||||
if(args.length == 0)
|
||||
message.channel.send("Can't send empty message");
|
||||
else{
|
||||
message.channel.send(args.join(" "))
|
||||
message.delete()
|
||||
}
|
||||
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue