1st commit Discord Bot
This commit is contained in:
17
commands/sources.js
Normal file
17
commands/sources.js
Normal file
@@ -0,0 +1,17 @@
|
||||
var libFlayer = require("../libFlayer.js");
|
||||
|
||||
module.exports = {
|
||||
name: 'sources',
|
||||
description: 'List RSS Sources',
|
||||
execute(message, args) {
|
||||
|
||||
var command = args[0];
|
||||
var search = args[1];
|
||||
|
||||
var sourceArray = libFlayer.getSources();
|
||||
sourceArray.forEach(source => {
|
||||
message.reply(`[${source.title}](${source.link})`);
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user