Velvox Scam Prevention Bot is a powerful Discord bot designed to protect your server from various threats, including scam links, NSFW servers, and potential malicious executables. It comes with multiple built-in detection features and an easy setup process.
- Shortened Link Detection: Identifies and flags potentially dangerous shortened URLs.
- NSFW Server Detection: Automatically detects and flags servers marked as NSFW using a database.
- Scam Link Detection: Scans for scam links hidden behind legitimate domains (e.g.,
[steamcommunity.com/redeem](https://scamlink.tdl)
). - Malicious Executable Detection: Warns users about potentially harmful executables, such as APK, MSI, or PS1 files.
Invite the bot https://discord.com/oauth2/authorize?client_id=1281627516485767281 and select the server you want the bot to be in!
Download the .tar
package of the bot from the releases page or import it to your server.
- Purchase your Discord bot with the "Python Generic" option.
- Go to the game panel, navigate to "your server" > Files, and upload the
.tar
file into the/home/container/
directory. Extract the contents of the.tar
file. - Create a database in the "Database" tab and save the login details.
-
Open the
bot.py
file and configure the MySQL connection in theget_mysql_connection
function by entering the correct login credentials:# MySQL Database Configuration MYSQL_HOST = "yourdatabasehost" MYSQL_USER = "yourdatabaseuser" MYSQL_PASSWORD = "yourdatabasepassword" MYSQL_DATABASE = "yourdatabasename"
-
Add your Discord bot token at the
bot.run()
line, which can be obtained from the Discord Developer Portal.# Run the bot with your token bot.run("yourbottoken")
-
Ensure the MySQL database has the necessary tables. Create them with the following SQL statement:
-- Table to store users who opted-in for DM warnings CREATE TABLE IF NOT EXISTS dm_user_permissions ( user_id BIGINT PRIMARY KEY, status TINYINT(1) NOT NULL DEFAULT 1 ); -- Table to store scam signatures CREATE TABLE IF NOT EXISTS scam_signatures ( id INT AUTO_INCREMENT PRIMARY KEY, signature VARCHAR(255) NOT NULL ); -- Table to store flagged NSFW or malicious servers CREATE TABLE IF NOT EXISTS nsfw_scam_servers ( id INT AUTO_INCREMENT PRIMARY KEY, guild_id BIGINT NOT NULL UNIQUE, reason TEXT NOT NULL ); -- Table to store reports (for servers and bots) CREATE TABLE IF NOT EXISTS reports ( id INT AUTO_INCREMENT PRIMARY KEY, report_type ENUM('server', 'bot') NOT NULL, reported_id BIGINT NOT NULL, already_reported TINYINT(1) DEFAULT 0 );
The game panel should automatically install all necessary packages. If you encounter errors, reach out to Velvox support.
After configuration, click "Start" in the game panel. Ensure your bot has the correct permissions set in the Discord Developer Portal. You can now start using the bot in your Discord server!
For more detailed usage, refer to the commands section.
Velvox Scam Prevention Bot supports Discord Slash Commands. Here are the available commands:
/allowdmwarning
: Toggle DM warning status for yourself. Adds or removes you from the list of users who receive DM warnings about potential scams./whatisascam
: Provides an explanation of what constitutes a scam, including common types and warning signs.
/vtdcheck
: Checks a domain or URL for malicious activity using VirusTotal. Provides a summary of the findings and a link to VirusTotal for detailed information.
/report
: Initiates a report process. Includes options for reporting servers (/reportserver
) or bots (/reportbot
). Checks if the target is already reported and updates the report status accordingly.
/reportserver
: Report a server for suspicious or malicious activity. Updates the database with the report details./reportbot
: Report a bot for suspicious or malicious activity. Updates the database with the report details.
/checkserver
: Verifies if a server is flagged as malicious or NSFW based on its invite link and compares it with the database and Discord API.
/scanmessage
: Scans a message for NSFW content and potential scams. Provides feedback on whether the content is flagged.
This bot is licensed under the GNU General Public License v3.0. See the LICENSE file for more details.