/report-server

[Superseded by Beezig/api-server] Beezig's report server, written in JavaScript.

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Reports server (Beezig)

This is Beezig's report server.

Routes

It receives report requests via POST /report.

  • Go here for Beezig's implementation.

It also receives Discord requests via GET /check/:id.
These requests can be used to check if a user is a member of the Beezig Discord guild.

Environment

  • BOT_TOKEN: Discord bot token to use.
  • BOT_GUILD_ID: The guild ID the bot should use when checking if a player is a member.
  • REPORTS_HOOK_ID: Discord webhook ID to send reports.
  • REPORTS_HOOK_KEY: The webhook's secret key.
  • REPORTS_MOD_ROLE: The moderator role that will be pinged.
  • ERROR_HOOK_ID: Webhook ID for error reporting.
  • ERROR_HOOK_KEY: Webhook key for error reporting.