/equibot

Discord bot for Equilibrium, a Torn City faction. If you're never heard of Torn City, you should give it a try and look me up in-game. Here's my referral link: https://www.torn.com/2252482

Primary LanguageJavaScriptMIT LicenseMIT

equibot

Discord Bot for Equilibrium, a Torn City faction.

Requirements

Other bits needed:

Installation

  • In the parent directory where you want to clone this repo. run the following:
    • git clone https://github.com/TheCodeSinger/equibot
  • In the folder from where you ran the git command, run cd equibot and then run npm install.
  • If you get any error about python or msibuild.exe or binding, review the requirements section
  • Copy auth.js.template to auth.js and fill out the required fields.
  • Copy config.js.template to config.js and fill out the required fields.

Starting the bot

To start the bot, run the following command: npm start

Keeping the bot running

If you want to run the bot in the background, you can use the pm2 process manager which is already installed as one of the dependencies. If you create an account online you can link to a web app dashboard monitor. If you choose to use a different method, you may remove the pm2 entry in package.json.

Start and Daemonize the application: pm2 start index.js

Add this process to your OS startup script: pm2 startup

Inviting to a guild

To add the bot to your guild, you have to get an oauth link for it.

You can use this site to help you generate a full OAuth Link, which includes a calculator for the permissions: https://finitereality.github.io/permissions-calculator/?v=0

Or you can use the discord developer portal where you created your bot.