discord-bot-rss-feed/app/commands/view-feeds.js
benji7425 3fc93e06cd Update commands to use message.reply, rather than promises
The promise method was just too annoying, better to go back to .reply
2017-09-24 21:39:34 +01:00

16 lines
421 B
JavaScript

const Core = require("../../discord-bot-core");
module.exports = new Core.Command({
name: "view-feeds",
description: "View a list of configured feeds and their associated details",
syntax: "view-feed",
admin: true,
invoke: invoke
});
function invoke({ message, params, guildData, client }) {
if (!guildData)
message.reply("Guild not setup");
message.reply(guildData.feeds.map(f => f.toString()).join("\n"));
}