Sign inSign up

brandonfl/discord-role-persistence

By brandonfl

•Updated about 1 year ago

Discord Role Persistence is a Discord bot with the objective to save the roles of users

Image
Monitoring & observability
0

3.2K

brandonfl/discord-role-persistence repository overview

⁠
Discord Role Persistence⁠

⁠ Discord Role Persistence is a verified Discord bot with the objective to save the roles of users even after a leave/join server

release Docker version CodeQL sonar-gate licence

Invite⁠ • How to use⁠ • Variables⁠ • Licence⁠

⁠Invite

The invitation link for the bot is present into the website : https://discord-role-persistence.com⁠

⁠How to use

⁠Use with docker-compose
  1. Change variables⁠ in application.properties⁠ file

  2. Use command docker-compose up

⁠Use with docker run

Command docker run IMAGE -e BOT_TOKEN=TOKEN ...

with -e the variables⁠

⁠Use with java
  1. Compile mvn clean package
  2. Run java -jar target/bot.war with variables⁠
⁠Use with tomcat
  1. Compile mvn clean package and get the war file in targetfolder
  2. Config the config file of your bot CATALINA-HOME/conf/Catalina/localhost/bot.xml with variables⁠
  3. Deploy the war CATALINA-HOME/webapps/bot.war

⁠Variables

KeyDescriptionDefault
LOG_FILELocation of log file./log/bot.log
BOT_TOKENToken of the Discord botNone - required
DB_HOSTDefine where the mysql server is. If not set, in-memory storage will be used.None
DB_NAMEDefine the database namebot
DB_USERNAMEDefine the username used to connect to the datasourcebot
DB_PASSWORDDefine the password used to connect to the datasourcebot
DB_TIMEZONEDefine the timezone used to store date into the datasourceUTC
DB_PATHDefine the path of the in-memory storage. If not set, data will be lost at bot reboot../data/drp

⁠Licence

Project under MIT⁠ licence

Tag summary

Content type

Image

Digest

sha256:2861bfeb1…

Size

277.8 MB

Last updated

about 1 year ago

docker pull brandonfl/discord-role-persistence