diff --git a/config.json b/config.json index 318f3ce..2c22df0 100644 --- a/config.json +++ b/config.json @@ -3,5 +3,6 @@ "channelID": "264420391282409473", "pollingInterval": 5000, "numLinksToCache": 10, - "youtubeMode": true + "youtubeMode": true, + "logRequestMessage": "!logsplease" } \ No newline at end of file diff --git a/feed-bot.js b/feed-bot.js index 4f244c4..a592806 100644 --- a/feed-bot.js +++ b/feed-bot.js @@ -58,6 +58,12 @@ var DiscordClient = { return url; }); } + else if (message == Config.logRequestMessage) { + DiscordClient.bot.uploadFile({ + to: channelID, + file: "./log" + }); + } }, checkPastMessagesForLinks: function () { var limit = 100;