diff --git a/app/bot.js b/app/bot.js index ff81e7d..ac2f13e 100644 --- a/app/bot.js +++ b/app/bot.js @@ -3,11 +3,26 @@ const GuildData = require("./models/guild-data.js"); module.exports = { onCommand(commandObj, commandsObj, params, guildData, message) { switch (commandObj.command) { - case commandsObj.commandName.command: - return; //return promise! + case commandsObj.addFeed.command: + return addFeed(); + case commandsObj.removeFeed.command: + return removeFeed(); + case commandsObj.viewFeeds.command: + return viewFeeds(); } }, onNonCommandMsg(message, guildData) { return; } -}; \ No newline at end of file +}; + +function addFeed() { + //todo +} + +function removeFeed() { + //todo +} +function viewFeeds() { + //todo +} \ No newline at end of file diff --git a/app/config.json b/app/config.json index e4c69c2..34468f9 100644 --- a/app/config.json +++ b/app/config.json @@ -17,6 +17,24 @@ "description": "Display information about commands available to you", "syntax": "help", "admin": false + }, + "addFeed": { + "command": "add-feed", + "description": "Add an RSS feed to be posted in a channel, with an optional role to tag", + "syntax": "add-feed <#channel> [@role]", + "admin": true + }, + "removeFeed": { + "command": "remove-feed", + "description": "Remove an RSS feed by it's ID", + "syntax": "remove-feed ", + "admin": true + }, + "viewFeeds": { + "command": "view-feeds", + "description": "View a list of configured feeds and their associated details", + "syntax": "view-feed", + "admin": true } } } \ No newline at end of file