Skip to content

Sintaxytb/Guardsman-discord-extended

Repository files navigation

Guardsman

No Maintenance Intended img

Guardsman Discord Extended

Guardsman is Bunker Bravo's moderation and management suite. This component (guardsman-discord-extended) is responsible for providing a Discord management interface for partnered guilds and global Bunker Bravo moderators.

Links

Installation

To install Guardsman Discord on your system, follow these steps:

NOTE: Guardsman Discord Extended has only been tested on linux and win32.

NOTE: Guardsman Discord Extended REQUIRES a working Guardsman Web installation. Please follow the installation instructions for Guardsman Web.

  • Clone the Guardsman Discord Extended repository. (ex: git clone https://github.com/Sintaxytb/Guardsman-discord-extended/

  • Install NPM dependencies with your package manager of choice (npm install, pnpm install, yarn install)

  • Copy .env.example to .env (cp .env.example .env)

  • Database migrations can be found in the Guardsman Web repository. You MUST have a working Guardsman Web installation to run Guardsman Discord Extended.

Configuration

The following configuration values MUST be set:

  • DISCORD_BOT_TOKEN
  • DISCORD_BOT_CLIENT_ID
  • DB_HOST
  • DB_PORT
  • DB_DATABASE
  • DB_USERNAME
  • DB_PASSWORD

Default values that are already configured are acceptable for use.

For verification to work, the following values must be set:

  • ROBLOX_CLIENT_ID
  • ROBLOX_CLIENT_TOKEN
  • APP_URL
  • VERIFICATION_COMPLETE_URI
  • GUARDSMAN_API_URL
  • GUARDSMAN_API_TOKEN
  • API_PORT

Running the bot

To deploy the bot to production, run npm run start. This will generate the minified files and run the bot.

A good way to keep Guardsman up is to use a process manager like PM2. To install run the following commands:

  • npm install -g pm2 (linux users, you may have to use sudo depending on how your node is installed)

  • pm2 start "node build/src/index.js" --name "GuardsmanDiscord"

  • pm2 startup (to start pm2 processes on boot)

  • pm2 save (to save the current process list which will let Guardsman start on boot)

If you need to stop Guardsman, you can use pm2 stop GuardsmanDiscord. To restart, use pm2 reload GuardsmanDiscord. Make sure to build(npm run build) before restarting if you have made changes.

To run the bot in a development environment, run npm run dev.

About

Just the discord extended version of Guardsman. All toos and things used here belong to Bunker Bravo LLC.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •