2017-09-24 23:31:30 +03:00
|
|
|
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)
|
2017-09-24 23:39:34 +03:00
|
|
|
message.reply("Guild not setup");
|
2017-09-24 23:31:30 +03:00
|
|
|
|
2017-09-24 23:39:34 +03:00
|
|
|
message.reply(guildData.feeds.map(f => f.toString()).join("\n"));
|
2017-09-24 23:31:30 +03:00
|
|
|
}
|