/pis-bot

Pterodactyl Installation Script support bot

Primary LanguageTypeScriptMIT LicenseMIT

pis-bot

Node.js GitHub workflow GitHub Docker Cloud Build Status

This is a support bot for the Pterodactyl Installation Script Discord, but feel free to adapt it for your own uses. It is a simple bot that responds to commands, keywords, or parsed image text.

Requirements

Nodejs v16.6.0 or newer is required. You can install that using:

curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs

Docker image

We provide an easy-to-use docker-compose.yml file. Just install docker and docker-compose. Create a file named .env and add the following variables.

TOKEN="<token>"

Manual Installation

git clone https://github.com/pterodactyl-installer/pis-bot.git
yarn install --production

Then create a .env file and add the following config:

TOKEN=<token>
PREFIX=<prefix>

Then just build the bot with:

yarn build

And to start it once use:

yarn start

Configuration

Triggers are defined in src/config/triggers.ts. (After adding any don't forget to rebuild)

Running

One-time start: yarn start Using docker and docker-compose: docker-compose up -d

Staying updated

To stay updated with the latest versions, you can use the docker image provided.