Husky Bot is a Discord bot that is designed to help manage your Discord server. It includes a wide range of features, including moderation tools, utility commands, and fun commands to keep your server engaged.
- β¨ Features
- π Commands
- π οΈ Installation
- π€ Contributing
- π License
Responsive Module Management
Turn modules on or off with an intuitive toggle system, giving you complete control over your server's functionality. |
![]() |
Cloud-Based Storage with MongoDB
Effortlessly Report Users or Messages
Efficient Bug Reporting
Advanced Logging
Welcome Module
Fun Games
General Commands
avatar
: Displays the user's avatar.echo
: Repeats the message back to you.huskies
: Information about huskies.stats
: Shows the bot's statistics.
Moderation Commands
ban
: Bans a user from the server.unban
: Unbans a user from the server.kick
: Kicks a user from the server.
Fun Commands
rockpaperscissors
: Play Rock, Paper, Scissors with the bot.guess
: Guess a number game.slot
: Slot machine game.roll
: Roll a dice.dropout_chance
: Calculates the chance of a hypothetical dropout.
Server Config Commands
prefix
: Sets or shows the bot's prefix.welcome
: Configures welcome messages.logging
: Sets up logging features.
Owner Commands
reload
: Reloads a bot's command.resetdb
: Resets the database of the guild.
Installation Steps:
Follow these steps to install and set up Husky:
-
Clone the Repository:
Open your terminal or command prompt and navigate to the directory where you want to store your bot's code. Then, run the following command to clone the bot's repository:
git clone https://github.com/Laernos/Husky.git
-
Navigate to the Bot's Directory:
cd Husky
-
Install Python and Dependencies:
Ensure you have Python installed on your system. You can download it from Python's official website. Next, create a virtual environment and activate it (recommended for isolation):
python -m venv venv source venv/bin/activate # On Windows, use: venv\Scripts\activate
-
Invite the Bot to Your Discord Server:
-
Create a Discord bot on the Discord Developer Portal.
-
Copy your bot's token.
-
Use the provided invite link template or generate an OAuth2 invite link with the "bot" scope and the necessary permissions. Invite the bot to your server.
-
-
MongoDB SETUP
Husky uses MongoDB for data storage. If you don't have a MongoDB account, follow these steps to create one: Create a MongoDB Atlas Account:
-
Visit MongoDB Atlas:
Sign up for an account or log in if you already have one.
-
Create a Cluster:
Once logged in, create a new cluster by following the provided instructions. Select a cloud provider and region that best suits your needs.
-
Set Up Database User:
In your MongoDB Atlas dashboard, navigate to the "Database Access" section. Click "Add New Database User" and create a username and password. Remember these credentials.
-
Whitelist Your IP Address:
In the "Network Access" section, click "Add IP Address" and whitelist your current IP address.
-
Get Connection String:
In your cluster's dashboard, click "Connect" and choose "Connect Your Application."
Copy the connection string and replace with the database user's password.
Example connection string:
mongodb+srv://<username>:<password>@cluster0.mongodb.net/<database-name>?retryWrites=true&w=majority
-
-
Configure the bot
Create a
.env
file in the root directory of your Husky bot project and fill it with the following variables:DISCORD_API_TOKEN= "YOUR_DISCORD_API_TOKEN_HERE" GUILD = "YOUR_GUILD_NAME" GUILD_INVITE = "YOUR_GUILD_INVITE_LINK" MONGO_TOKEN= "YOUR_MONGO_DB_TOKEN" API_KEY= 'YOUR_API_KEY' OWNER_ID = "YOUR_OWNER_USER_ID" STATUS_PAGE = 'https://huskybot1.statuspage.io/' BOT_INVITE_LINK = 'YOUR_BOT_INVITE_LINK' BUG_REPORT_CHANNEL_ID = 'YOUR_BUG_REPORT_CHANNEL_ID' BOT_STATUS_CHANNEL_ID = "YOUR_STATUS_CHANNEL_ID" BOT_ID = 'YOUR_BOT_ID'
-
Customize and Enjoy
Customize your bot's behavior and commands as needed. Refer to the README and documentation for more details on configuring and using Husky.
That's it! Husky bot should now be installed and ready to use on your server.
Contributions are welcomed to Husky! If you have ideas for improvements or want to report issues, please open an issue or submit a pull request.
Husky is licensed under the MIT. If you plan to use any part of this source code in your own bot, please include appropriate credit.