https://github.com/brandonfl/discord-virustotal-bot
Discord bot using VirusTotal API to check if the content of messages sent by discord users is safe
https://github.com/brandonfl/discord-virustotal-bot
discord discord-bot security virustotal
Last synced: 3 months ago
JSON representation
Discord bot using VirusTotal API to check if the content of messages sent by discord users is safe
- Host: GitHub
- URL: https://github.com/brandonfl/discord-virustotal-bot
- Owner: brandonfl
- License: mit
- Created: 2021-12-25T14:24:04.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-07T21:55:22.000Z (about 3 years ago)
- Last Synced: 2025-08-03T03:43:46.235Z (12 months ago)
- Topics: discord, discord-bot, security, virustotal
- Language: Java
- Homepage:
- Size: 85.9 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Discord VirusTotal bot
Discord bot using VirusTotal API to check if the content of messages sent by discord users is safe
How to use •
Variables •
Licence
## How to use
#### 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 `target`folder
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
| 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 |
## Licence
Project under [MIT](https://github.com/brandonfl/discord-virustotal-bot/blob/master/LICENSE) licence