Simple express + discordjs hybrid for announcing rank updates
  • JavaScript 98.5%
  • Dockerfile 1.5%
Find a file
2022-12-10 00:07:53 +01:00
discord send announcement to all registered channels 2022-12-10 00:07:53 +01:00
utils add postgres db 2022-12-10 00:07:34 +01:00
web remove unneeded nullcheck in webserver 2022-12-09 19:05:39 +01:00
.dockerignore First commit: webserver and discord bot 2022-12-09 03:25:46 +01:00
.gitignore First commit: webserver and discord bot 2022-12-09 03:25:46 +01:00
Dockerfile Add dockerfile 2022-12-09 03:34:52 +01:00
index.js add postgres db 2022-12-10 00:07:34 +01:00
package-lock.json send announcement to all registered channels 2022-12-10 00:07:53 +01:00
package.json add postgres db 2022-12-10 00:07:34 +01:00
README.md send announcement to all registered channels 2022-12-10 00:07:53 +01:00

Rank Announce

Small express + discord.js hybrid application.

Extremely minimalistic, see web/main.js for routes and params.

Setup

Use the damn docker file.

Env

  • RANK_ANNOUNCE_WEBSERVER_PORT - Port to run the webserver on
  • RANK_ANNOUNCE_DISCORD_TOKEN - Discord bot token
  • RANK_ANNOUNCE_DISCORD_CLIENT_ID - Discord client ID
  • Postgres Environemnt Variables, see postgres docs

Usage

  1. Use /register to register the current channel as a rank announce channel. Make sure your permissions are set up correctly, the bot does not check if the user actually should have permissions.
  2. Send a POST to any of the endpoints, depending on what you want to announce.
  3. Receive the message

Example: Example Image

License

MIT