项目作者: TheCodeSinger

项目描述 :
Discord bot for Equilibrium, a Torn City faction.
高级语言: JavaScript
项目地址: git://github.com/TheCodeSinger/equibot.git
创建时间: 2020-05-08T00:23:57Z
项目社区:https://github.com/TheCodeSinger/equibot

开源协议:MIT License

下载


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.