This is a simple script that will take a Discord chat and convert it to an RSS feed.
FEED_CHANNELS- A comma separated list of channel IDs and their names. The format ischannel_id=channel_name. For example,general=<ChannelID>,general2=<ChannelID>.DISCORD_TOKEN- The Discord bot token.BASE_URL- The base URL for the RSS feed. This is used to generate the links for the feed.PORT- The port to run the server on. Default is 5000.HOST- The host to run the server on. Default is 0.0.0.0.
Docker Command
docker run ghcr.io/juli0q/discord-chat-rss-feed:latest -e FEED_CHANNELS="general=<ChannelID>,general2=<ChannelID>" -e DISCORD_TOKEN="<DiscordToken>" -e DEFAULT_MAIL="<Email>" -e BASE_URL="<URL>"Docker Compose
version: '3.7'
services:
discord-chat-rss-feed:
image: ghcr.io/juli0q/discord-chat-rss-feed:latest
environment:
- FEED_CHANNELS=general=<ChannelID>,general2=<ChannelID>
- DISCORD_TOKEN=<DiscordToken>
- BASE_URL=<URL>
ports:
- "3000:5000"With this example the 2 feeds will be available at:
http://localhost:3000/generalhttp://localhost:3000/general2