Go to file
benji7425 437b5d5ad6 Updated changelog to note refactor 2016-12-03 01:53:23 +00:00
.vscode Added vscode launch json for node 2016-10-30 19:39:58 +00:00
.eslintrc.json Updated my eslint config 2016-12-02 00:51:12 +00:00
.gitignore Fixed conversion from full url to share url returning undefined 2016-12-02 22:11:13 +00:00
CHANGELOG.md Updated changelog to note refactor 2016-12-03 01:53:23 +00:00
README.md Updated bot-config file name to follow convention 2016-12-02 00:57:37 +00:00
config.json Added youtube mode toggle with full url -> share url conversion 2016-12-02 21:53:13 +00:00
feed-bot.js Fixed a bunch of wrong references from quick copy-pastes 2016-12-03 01:52:16 +00:00
log.js Fixed conversion from full url to share url returning undefined 2016-12-02 22:11:13 +00:00
package.json Added event logging, improved error handling, added link caching 2016-10-31 23:28:17 +00:00

README.md

Features

  • Posts latest link from RSS feed into specified Discord channel
  • Doesn't post the link if it has already been posted in last 100 messages
  • Configurable polling interval

Planned features

  • Addition of user-defined URLs to match as 'sent' (ie if a user posts a youtu.be link, the bot will still post a youtube.com link, even if they point to the same palce - I would like to add a setting whereby you can specify alternate hosts to match)

Feel free to contact me with suggestions and feature requests - if you need a new feature, just let me know and I will see what I can do! (No promises though :p)

Installation

  1. Make sure you have nodejs (v6+) and npm installed
  2. Clone repo or download zip and extract somewhere
  3. Open a terminal in cloned/extracted folder
  4. Run npm install and wait for it to finish
  5. Edit config.json to include your RSS feed and channel ID
  6. Create bot-config.json to include your bot token: { "token": "abc123blahblahblahyourtokengoeshere" }
  7. Run node feed-bot.js