Skip to content

post daily new post within seleced blog on discord

Notifications You must be signed in to change notification settings

gdscyzu/discord-blog-newsletter

This branch is 8 commits ahead of, 8 commits behind ryankert01/discord-blog-newsletter:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8c44a30 · Sep 6, 2022

History

35 Commits
Sep 6, 2022
Sep 4, 2022
Sep 5, 2022
Sep 4, 2022
Sep 6, 2022
Sep 4, 2022
Sep 4, 2022

Repository files navigation

discord-blog-newsletter

post daily new post within seleced blog on discord, on 7 a.m. (UTC-8) daily.

Prerequisite

You have to first setup this project, to use the api we setup in it.

How to use that:

  1. fork this repository
  2. setup a basic discord bot
  3. get the bot's BOT_TOKEN and store it in this repository's secret. (use BOT_TOKEN as secret name)
  4. 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>');

find 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.

  1. 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;
    })
  1. and you're all set.

dev

install dependencies

npm i

Run Server

npm run start

About

post daily new post within seleced blog on discord

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%