This repository was archived by the owner on Feb 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
GettingStarted
Zachary Kohnen edited this page Jun 2, 2017
·
8 revisions
-
Create the command handler
var Commands = new SimplerDiscord.CommandHandler("d!", { color: undefined, notfound: true }, 5000);
-
Create commands
var PingCommand = new SimplerDiscord.Command("ping", null, "Ping the bot", Ping); var EchoCommand = new SimplerDiscord.Command("echo", true, "Echo the string", Echo);
-
Regester the commands
Commands.regester(PingCommand, "Utility Commands"); Commands.regester(EchoCommand, "Fun Commands");
-
Run the commands
client.on('message', msg => { Commands.handle(msg); })