Skip to content

HexCorpProgramming/HexCorpModerationInterface

 
 

Repository files navigation

HexCorp Moderation Interface

This is a fork of Dragory's Modmailbot for Discord, slightly customized for the HexCorp server.

Requirements

  • Node 20

Building and deploying with Docker

Building

The configuration file isn't pushed to the repo, since it contains sensitive information such as server IDs, and especially the bot token. Create a configuration file called config.ini, add it to the project directory, then build the Docker image with:

docker image build --tag mod_interface:latest .

Running

Logs of all chats are saved in an SQLite database. To ensure that these logs are persisted when the container is shut down for any reason, we are attaching in the database from outside of the Docker image. This also enables easier inspection of the database.

To run the image, use the following command:

docker run \
    --name ModerationInterface \
    --detach \
    --restart always \
    --volume ./modmailbot-db/:/var/opt/HexCorpModerationInterface/db/\
    -p 8890:8890\
    mod_interface:latest

Building and running with system Node

As mentioned before, create config.ini, and add it to the current working directory. Then, run the following command in project root:

npm ci && npm start

About

Modified version of Dragory's modmailbot for the HexCorp server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.8%
  • Other 0.2%