Skip to content

hchengting/toram-news-discord-bot

Repository files navigation

Toram News Discord Bot

This Discord bot regularly fetches news from https://tw.toram.jp/information and sends it to the Discord channel.

Setup Discord Bot

Follow Setting up a bot application | discord.js Guide (discordjs.guide) to create your Discord bot.

Change Default Install Settings

Go to Discord Developer Portal — My Applications.

Click on your bot application and open the Installation page.

Select Guild Install.

Select the bot scope.

Select Embed Links, Send Messages permissions.

image

Invite Bot to Server

Invite bot to the server by visiting the install link.

Change Interactions Endpoint URL

Go to Discord Developer Portal — My Applications.

Click on your bot application and open the General Information page.

Configure your own interaction endpoint URL.

image

How to Run

Environment Variables

Rename .env.example to .env and fill in your own.

DB_PATH=./data/toram-news.db
DENO_SQLITE_PATH=./lib/libsqlite3.so
# DENO_SQLITE_PATH=./lib/sqlite3.dll
APPLICATION_ID=
DISCORD_BOT_TOKEN=
DISCORD_PUBLIC_KEY=

Run Docker Container

mkdir data
docker run -d --name toram-news-discord-bot --restart always --memory 256m --env-file .env -p 127.0.0.1:3000:3000 -v ./data:/app/data ghcr.io/hchengting/toram-news-discord-bot

Subscribe to Toram News

Use /subscribe command in the channel.

image

References

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages