-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the CRAC Bot wiki! This wiki provides comprehensive documentation for the CRAC Bot, a versatile Discord bot designed to enhance server management and user interaction.
- Introduction
- Features
- Commands
- Installation
- Usage
- Configuration
- Project Structure
- Dependencies
- Development
- Contributing
- License
- Support
- Creator
CRAC Bot is an all-purpose Discord bot currently in active development. It offers a wide range of features from moderation tools to fun commands, making it a valuable addition to any Discord server.
Key highlights:
- Comprehensive moderation tools
- User interaction features
- Voice channel integration
- Customizable settings
CRAC Bot offers a variety of features to enhance your Discord server:
-
Server Moderation
- Kick users
- Ban and unban users
- Timeout users
- Nickname management
-
User Interaction
- Character information lookup
- Text-to-speech functionality
- Music playback from YouTube
- User profile display
-
Bot Management
- Customizable bot status
- Start/shutdown commands
- Feedback system
-
Message Handling
- Logging of message edits and deletions
- Inappropriate word detection and filtering
-
Voice Channel Integration
- Join and leave voice channels
- Play audio in voice channels
-
Customization
- Configurable command prefix
- Guild-specific settings
CRAC Bot offers the following commands:
-
?help
: Displays a help message with all available commands and their usage. -
?kick @user [reason]
: Kicks the mentioned user from the server. -
?ban @user [reason]
: Bans the mentioned user from the server. -
?unban @user
: Unbans the specified user from the server. -
?timeout @user <duration> <unit> [reason]
: Timeouts the mentioned user. -
?shutdown
: Shuts down the bot. -
?start
: Starts the bot if it's offline. -
?charinfo [character]
: Provides detailed information about the specified character. -
?tts [message]
: Converts the given text to speech and plays it. -
?play [youtube_url]
: Plays audio from the specified YouTube video. -
?join
: Makes the bot join the user's current voice channel. -
?leave
: Makes the bot leave the current voice channel. -
?profile @user
: Displays detailed profile information about the mentioned user. -
?nick @user [new_nickname]
: Changes the nickname of the mentioned user. -
?feedback [message]
: Allows users to submit feedback about the bot.
For detailed usage instructions, see the Commands page.
To install CRAC Bot, follow these steps:
-
Clone the repository:
git clone https://github.com/your-username/crac-bot.git
-
Navigate to the project directory:
cd crac-bot
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up your Discord bot token:
- Create a new application in the Discord Developer Portal
- Create a bot for your application and copy the bot token
- Create a
config.json
file in the project root and add your token
-
Set up the SQLite database:
python setup/create_feedback_table.py python setup/create_history_table.py python setup/create_usage_table.py
For more detailed instructions, see the Installation page.
To use CRAC Bot:
-
Run the bot:
python launcher.py
-
Invite the bot to your Discord server:
- Go to the OAuth2 URL generator in your Discord Developer Portal
- Select the "bot" scope and the necessary permissions
- Use the generated URL to invite the bot to your server
-
Once the bot is in your server, use
?help
to see all available commands.
For more information, see the Usage page.
CRAC Bot can be configured using the config.json
file. Key settings include:
- Default command prefix
- Bot version
- Bot name
- TTS mode
- Guild-specific settings
For a detailed explanation of configuration options, see the Configuration page.
The CRAC Bot project is structured as follows:
-
main/bot.py
: Main bot file with command implementations and event handlers -
launcher.py
: Entry point for running the bot -
db_manager/
: Database management modules -
setup/
: Database setup scripts -
temp/audio/
: Temporary audio files for TTS feature -
website/
: HTML files for the bot's website
For more details, see the Project Structure page.
CRAC Bot relies on several Python libraries:
- discord.py
- Pillow
- gTTS
- yt_dlp
- rich
- langdetect
For a complete list, see the Dependencies page.
CRAC Bot is under active development with regular updates. Future plans include:
- Implementing a music queue system
- Adding more interactive commands
- Improving error handling
- Enhancing the configuration system
For more information on the development process and plans, see the Development page.
We welcome contributions to CRAC Bot! To contribute:
- Fork the repository
- Create a new branch for your feature or bug fix
- Make your changes and commit them
- Push your changes to your fork
- Submit a pull request to the main repository
For more details, see the Contributing page.
CRAC Bot is licensed under the Apache License 2.0. For the full license text, see the License page.
For support with CRAC Bot:
- Open an issue on the GitHub repository
- Join our support Discord server (link to be added)
- Contact us via email at [email protected]
For more information, see the Support page.
CRAC Bot is created and maintained by Nerd Bear. For more information about the creator and other projects, visit nerd-bear.org.