1.1.6 • Published 4 years ago
rssbot v1.1.6
EasyDiscordRSS
Turn your Discord server into a rss feed
Quick Start
Follow these two instructions to add a bot to your server.
Rembember to select both bot and applications.commands for the OAuth2 URL generator.
You should note down the token, client id, public key, and the server id as they will be needed own the initial registration of slash commands.
npm i -g rssbot
rssbot register # register slash commands
rssbot runIf everything went well then the bot should be up and running and typing /rss in any channel will show a list of all available commands.
Add RRS Feed To Channel
/rss add name urlname:should be uniqueurl:usually just the base url with /rss or /feed
Remove RRS Feed From Channel
/rss rem nameUse In Your Own Project
npm i rssbotregisterInteractions(opts) // register slash commands
const bot = new RSSBot("token") // create and start bot
bot.client // standard Discord clientTurn any site into a rssbot compatable source by extending the Feed class.
class SomeRandomSiteFeed extends Feed {
async _fetch(): Promise<Post> {
/*
get site data and scrape
*/
}
}
bot.addCustomFeed(new CustomSiteFeed())The custom feed will then be available with
/feed add name