This is a Discord bot that can be used to scan files for viruses using the VirusTotal API. The bot listens for messages in a Discord server, and if a message contains a file attachment, it downloads the file, checks it for viruses using the VirusTotal API, and then reports the scan results back to the user and deletes message
To use this bot, you will need the following:
- Clone this repository to your local machine.
- Install the required packages using pip:
pip install discord requests hashlib aiohttp os
- Set up
.env
file
{
"DISCORD_TOKEN": "your_bots_discord_token",
"VIRUSTOTAL_API_KEY": "your_virus_total_api_key"
}
python main.py