Skip to content

This Discord bot is designed to provide file scanning functionality using the VirusTotal API to check for viruses and other malware in attachments uploaded to a Discord channel.

License

mishalhossin/DetectXDiscord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DetectXDiscord

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

Pre-view

image

Getting Started

Prerequisites

To use this bot, you will need the following:

Installation

  1. Clone this repository to your local machine.
  2. Install the required packages using pip:
pip install discord requests hashlib aiohttp os
  1. Set up .env file
{
  "DISCORD_TOKEN": "your_bots_discord_token",
  "VIRUSTOTAL_API_KEY": "your_virus_total_api_key"
}

Run the bot

python main.py