This Discord bot regularly fetches news from https://tw.toram.jp/information and sends it to the Discord channel.
Follow Setting up a bot application | discord.js Guide (discordjs.guide) to create your Discord bot.
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.
Invite bot to the server by visiting the install link.
Go to Discord Developer Portal — My Applications.
Click on your bot application and open the General Information page.
Configure your own interaction endpoint URL.
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=
Here we are using Caddy as the reverse proxy, you can also configure your own.
DOMAIN=<YOUR_DOMAIN> docker compose up -d
Use /subscribe
command in the channel.