How to use • Variables • Licence
Command
docker run IMAGE -e BOT_TOKEN=TOKEN ...
with -e
the variables
- Compile
mvn clean package
- Run
java -jar target/bot.war
with variables
- Compile
mvn clean package
and get the war file intarget
folder - Config the config file of your bot
CATALINA-HOME/conf/Catalina/localhost/bot.xml
with variables - Deploy the war
CATALINA-HOME/webapps/bot.war
Key | Description | Default |
---|---|---|
LOG_FILE | Location of log file | ./log/bot.log |
BOT_TOKEN | Token of the Discord bot | None - required |
VIRUS_TOTAL_TOKEN | Token of the VirusTotal API | None - required |
VIRUS_TOTAL_MAX_POSITIVE_SCORE_FOR_BLACKLIST | Max number of positive score to backlist the url. More the positive score is high, more the url represents a risk. | 3 |
DB_USERNAME | The username used for your database | bot |
DB_PASSWORD | The password used for your database | bot |
DB_FILE-PATH | Where your database files are stored | ./data/discordvirustotal |
DB_NAME | The name of the table | bot |
Project under MIT licence