1st commit Discord Bot
This commit is contained in:
18
commands/add.js
Normal file
18
commands/add.js
Normal file
@@ -0,0 +1,18 @@
|
||||
var libFlayer = require("../libFlayer.js");
|
||||
|
||||
module.exports = {
|
||||
name: 'add',
|
||||
description: 'Add RSS Source',
|
||||
execute(message,args) {
|
||||
|
||||
if (args.length < 2) {
|
||||
message.reply(`Please use in !get [number] format`);
|
||||
return;
|
||||
}
|
||||
var command = args[0];
|
||||
var param1 = args[1];
|
||||
libFlayer.addSource(param1);
|
||||
libFlayer.loadFeeds();
|
||||
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user