Crates.io | pmwiki-rss-discord-bot |
lib.rs | pmwiki-rss-discord-bot |
version | 1.0.0 |
source | src |
created_at | 2021-10-15 11:43:28.69354 |
updated_at | 2021-10-15 11:43:28.69354 |
description | Read an rss feed from pmWiki and push updates to a discord webhook endpoint |
homepage | https://github.com/GHGibonus/pmwiki-rss-discord-bot |
repository | https://github.com/GHGibonus/pmwiki-rss-discord-bot |
max_upload_size | |
id | 465436 |
size | 21,370 |
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
documentationsent.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 discordconfig.json
:
{
"rss_url": "https://example.com/wiki/pmwiki.php/Site/AllRecentChanges?action=rss",
"hook_url": "https://discord.com/api/webhooks/XYZ",
"pass": "password"
}
./pmwiki-rss-discord-bot
(make sure you have the config.json
and
sent.json
in the working directory)
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