Disclaimer
Welcome to Toolity, the all-in-one Captcha bot for Discord! Toolity is designed to add an extra layer of security to any server with ease and flexibility. Featuring multilingual support, automatic setup, logging, and more, Toolity is your go-to bot for managing server security.
- Universal Compatibility: Works on any Discord server, regardless of setup.
- Multilingual Support: Verification and commands are available in multiple languages.
- Automatic Setup: Toolity auto-configures essential settings, so you’re ready to go in no time.
- Logging: Provides detailed logs of bot actions and user interactions.
- User-Friendly Commands: Intuitive commands for a seamless experience.
An overview of the key files and folders in this project:
-
commands/
- Contains the bot’s commands.config.js
- Configure bot settings for the server.serverinfo.js
- Provides information about the current server.setup.js
- Automatic setup of the bot.verify.js
- Captcha verification command.
-
config/
- Stores configuration files.config.json
- Main configuration file for bot settings.settings.json
- Additional settings for customization.
-
data/
- Stores data files.captchaStorage.json
- Storage for generated Captcha data.
-
events/
- Handles bot events.guildMemberAdd.js
- Triggers on new members joining.interactionCreate.js
- Manages interaction events.
-
utils/
- Utility functions and helpers.captchaUtils.js
- Functions for Captcha generation and validation.database.js
- Database connection and management.generateCaptcha.js
- Captcha creation logic.messages.js
- Pre-defined messages and responses.userSettings.js
- Manages user-specific settings.
-
.env
- Environment variables for secure information (like API keys). -
deploy-commands.js
- Script to deploy bot commands to Discord. -
index.js
- Main entry point for running the bot.
Toolity requires Node.js and npm. Ensure both are installed before proceeding.
To install all dependencies, run:
npm install
The main dependencies include:
discord.js
- For interacting with the Discord API (^14.0.0)canvas
- Used for generating Captcha images (^2.11.2)dotenvs
- For managing environment variables securely (^10.0.0)
The main dependencies include:
discord.js
- For interacting with the Discord API (^14.0.0
)canvas
- Used for generating Captcha images (^2.11.2
)dotenv
- For managing environment variables securely (^10.0.0
)
-
In the root directory of the project, create a
.env
file to securely store sensitive information, like your Discord bot token. -
Add the following line to your
.env
file:
Replace your_discord_bot_token
with the actual token of your Discord bot, which you can generate in the Discord Developer Portal.
- In the code,
process.env.DISCORD_TOKEN
will automatically retrieve this token when the bot runs, keeping it secure.
Once dependencies are installed and your .env
file is set up, you can start the bot by running: "node index.js"
- Invite Toolity to Your Server: Follow the invite link to add Toolity to your server.
- Setup: Use
/setup
to initialize the bot for your server. - Config: Use
/config
to view and customize configurations.
Toolity allows for customized colors in each embed message. To change the color of any embed:
- Open the configuration file located at
config/settings.json
. - Locate the section for
embedColors
, where you can define different colors (in hexadecimal format) for specific types of embed messages, such as:- Verification messages
- Information messages
- Warning messages