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.
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 nodejsWe 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>"git clone https://github.com/pterodactyl-installer/pis-bot.gityarn install --productionThen create a .env file and add the following config:
TOKEN=<token>
PREFIX=<prefix>Then just build the bot with:
yarn buildAnd to start it once use:
yarn startTriggers are defined in src/config/triggers.ts.
(After adding any don't forget to rebuild)
One-time start: yarn start
Using docker and docker-compose: docker-compose up -d
To stay updated with the latest versions, you can use the docker image provided.