This branch is intended for hosting dedicated instances of Violent Bot.
You can run this locally free/m or on a vps for vps hosting cost/m
Join Patreon as a paid supporter and I will send you an invite link for the bot I am running myself.
This is the best option if you are non-technical and simply wish to use Violent Bot.
Production:
Current features include:
- Online List
- Levels List
- Deaths List
- Activity Feed
- Server Save Notifications
- Command Log
- Go to: https://discord.com/developers/applications and create a New Application.
- Go to the Bot tab and click on Add Bot.
- Click Reset Token & take note of the
Tokenthat is generated.
The bot is configured to point to emojis in my discord server.
You will need to change this to point to your emojis.
- Upload the emojis provided in the discord emojis folder to your discord.
- Open the discord.conf file and edit it.
- Point to
emoji idsto ones that exist on your discord server - the ones you uploaded in step 1.
- Ensure
dockeris installed. - Ensure
Java JDK 8is installed. - Ensure
sbtis installed. - Download the
postgresdocker image:
docker pull postgres
- Clone the repository to your host machine.
- Compile the code into a docker image:
sbt docker:publishLocal - Take note of the docker <image id> you just created:
docker images
- Create a
prod.envfile with the discord server/channel id & bot authentication token:
TOKEN=XXXXXXXXXXXXXXXXXXXXXX POSTGRES_HOST=sqlhost POSTGRES_PASSWORD=XXXXXXXXXX TIBIADATA_HOST=https://api.tibiadata.com/
- Create the docker volume for the postgres database:
docker volume create --name pgdata - Create the docker network for the
postgres databaseandviolent botto communicate over:
docker network create violentbot - Run the postgres docker image:
docker run --rm -d -t --env-file prod.env --hostname sqlhost --network=violentbot --name postgres -p 5432:5432 -v pgdata:/var/lib/postgresql postgres - Run the docker container you just created & parse the prod.env file:
docker run --rm -d -t --env-file prod.env --network=violentbot --name violent-bot <image_id>
- If something isn't working correctly you should be able to see why very clearly in the logs.
- Use
docker psto find the <container id> for the running bot. - Use
docker logs <container id>to view the logs. - Use
docker pull dpage/pgadmin4anddocker run -t --name pgadmin -p 0.0.0.0:82:80 --link postgres:postgres -e 'PGADMIN_DEFAULT_EMAIL=XXXXXXX@gmail.com' -e 'PGADMIN_DEFAULT_PASSWORD=XXXXXXXX' -d dpage/pgadmin4if you need to visualise the postgres dbs
