Skip to content
This repository was archived by the owner on Feb 13, 2018. It is now read-only.

GettingStarted

Zachary Kohnen edited this page Jun 2, 2017 · 8 revisions

Commands

  1. Create the command handler

    var Commands = new SimplerDiscord.CommandHandler("d!", { color: undefined, notfound: true }, 5000);

    Documentaton

  2. Create commands

    var PingCommand = new SimplerDiscord.Command("ping", null, "Ping the bot", Ping);
    var EchoCommand = new SimplerDiscord.Command("echo", true, "Echo the string", Echo);

    Documentation

  3. Regester the commands

    Commands.regester(PingCommand, "Utility Commands");
    Commands.regester(EchoCommand, "Fun Commands");

    Documentation

  4. Run the commands

    client.on('message', msg => {
        Commands.handle(msg);
    })

    Documentation

Message replys

CLI commands

Delete Messages After Set Time

Randomising messages

Rate limits