-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Rewriting help and info to be more compact. - Add command-list function to list all available commands. - some final cleaning up and structuring.
- Loading branch information
Showing
7 changed files
with
42 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// import of command prefix of YOUR choice | ||
const { prefix } = require('../../config.json'); | ||
const fncArgsInfo = require('./args-info.js'); | ||
|
||
exports.name = 'command-list'; | ||
exports.description = 'Returns a list of all commands'; | ||
exports.aliases = ['commands', 'list']; | ||
exports.usage = `${prefix}command-list`; | ||
exports.cooldown = 2; | ||
|
||
const cmdFnc = function(message, _1, commands) { | ||
for (const command of commands) { | ||
fncArgsInfo.cmdFnc(message, [`${prefix}${command[0]}`], commands); | ||
} | ||
}; | ||
exports.cmdFnc = cmdFnc; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters