Running the bot on linux
- install maven
- run
mvn clean install
to compile the bot - configure the bot using the config files, see database.properties.example and servers.json.example for examples
- run
java -jar target/discordBot-1.0.jar
to run the bot
Running the discord bot on heroku
- create a dyno(free tier)
- add the heroku postgres add-on to the dyno (free tier)
- connect to this github repo as a depolyment method
- manually deploy the bot
- configure the environment variables by setting the config vars in the settings
- add values for BOT_TOKEN and SERVERS_JSON, the DATABASE_URL should already be set by the postgres add on
- enable the dyno
Bot must have a role above every member that it might want to change the role of (this can be done with a dummy role that adds no other permissions if wanted)