post daily new post within seleced blog on discord, on 7 a.m. (UTC-8) daily.
You have to first setup this project, to use the api we setup in it.
- fork this repository
- setup a basic discord bot
- get the bot's BOT_TOKEN and store it in this repository's secret. (use BOT_TOKEN as secret name)
- acess ./main.js, and seach for
edit-channel-id
, and change the following id to your channel id.
// edit-channel-id
let channel = client.channels.cache.get('<your_channel_id>');
To get channel id, open Discord and go to your settings. On the "Advanced" page, turn on "Developer Mode". This will enable a "Copy ID" button in the context menu when you right-click on a channel, a server icon, or a user's profile, etc.
- access ./main.js, and search for
edit-api
, and change the following url to your this project's api url.
// edit-api
fetch('https://www.ryankert.cc/rss-friend/sorted.json') // substitude that to your url.
.then( (res) => res.json())
.then((json) => {
data = json;
})
- and you're all set.
install dependencies
npm i
Run Server
npm run start