0

Simple Command Infrastructure for Sporks

Free lines JavaScript 3 revisions 19 6 days ago 6 days ago
discord-sporks
var arr = message.content.split(" ");
if (arr[0] == "!command") {
  create_message(CHANNEL_ID, "response");
} 
if (arr[0] == "!othercommand") {
    create_message(CHANNEL_ID, "other response");
}

A simple command infrastructure for the Sporks Discord bot: https://sporks.gg