#discord #discord-bot

app pmwiki-rss-discord-bot

Read an rss feed from pmWiki and push updates to a discord webhook endpoint

1 stable release

1.0.0 Oct 15, 2021

#92 in #discord-bot

WTFPL license

8KB
66 lines

Reads an RSS feed from the action=rss pmWiki endpoint and formats it to post to a discord webhook endpoint.

This bot has two persistence files:

  • config.json: gives hint as to where to read the RSS feed, which password to use and where to post the processed data. See discord documentation
  • sent.json: records the entries (tbh, only their pubDate) that were processed and sent to the channel so that they can be filtered out of the messages to send to discord

config.json:

{
    "rss_url": "https://example.com/wiki/pmwiki.php/Site/AllRecentChanges?action=rss",
    "hook_url": "https://discord.com/api/webhooks/XYZ",
    "pass": "password"
}

Usage

./pmwiki-rss-discord-bot (make sure you have the config.json and sent.json in the working directory)

License

This program is literally 80 lines of glue code. You do wtf you want with it.

Copyright © 2000 Gibonus This work is free. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See next lines.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004

Copyright 2021 gibonus

Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  1. You just DO WHAT THE FUCK YOU WANT TO.

Dependencies

~14–23MB
~493K SLoC