An open API service indexing awesome lists of open source software.

https://github.com/tony14261/micromightybot

My open source Discord bot
https://github.com/tony14261/micromightybot

bot discord discordapp open-source python3

Last synced: over 1 year ago
JSON representation

My open source Discord bot

Awesome Lists containing this project

README

          

# MicroMightyBot

MicroMightyBot is a lightweight Discord bot packed with small, kinda-useless features designed to make your server more entertaining and productive.

Version: 1.3.0 \
[Invite link](https://discord.com/oauth2/authorize?client_id=1300829284268507197)

---

## ✨ Features
> Look in [changelog.md](https://github.com/Tony14261/MicroMightyBot/blob/main/changelog.md) to keep up with the latest
- **/msgcount** Features to track number of messages members sent
- Now updated with many more features!
- **/roll_a_dice**: Rolls a dice (outputs a random number from 1-6)
- **/roll_custom_dice**: Rolls a custom dice (outputs a random number from a custom range)
- **/guess_the_number**: Guess the number from 1-10 (see if user's input is the same as the bot's random number)

## ⭐ Upcoming Features
- Enhance the verify system
- Use embeds or attachments instead of plain message
- Feature to close or open the server

## 📚 Programs Used
- **Language**: [Python 3.12+](https://www.python.org/)
- **Database**: [MongoDB Atlas](https://www.mongodb.com/atlas)
- **Hosting**: [Render](https://www.render.com/)

The best thing is, I am maintaining this bot for completely free, using the above programs!

## 🛠️ Remix Guide
- Warning: This project is under [CC-BY-NC-SA](https://creativecommons.org/licenses/by-nc-sa/4.0/)
- Btw, coding things take time and you must go through trial and error. So just patiently try to search stuffs in [pycord docs](https://docs.pycord.dev/en/stable/index.html) or [pymongo docs](https://www.mongodb.com/docs/languages/python/pymongo-driver/current/) :)
### Prerequisites
- Python 3.12+ installed
- MongoDB Atlas connection string ([Get Started](https://www.mongodb.com/atlas/database))
- Discord bot token ([Create Your Bot](https://discord.com/developers/applications))

### 1. **Clone this repository**:
```bash
git clone https://github.com/Tony14261/MicroMightyBot/
```

### 2. **Install dependencies:**
```bash
pip install -r requirements.txt
```

### 3. **Set up environment variables:** Create a `.env` file in the project directory:
```env
DISCORD_TOKEN=your_discord_bot_token
MONGO_URI=your_mongodb_connection_string
PORT = 8000
```
If you are using render, add
```env
PYTHON_VERSION = 3.11.10
```
as an environmet variable to specify the Python version you want

### 4. Modify the code:
- Change the code to your style. Maybe add some features, improve the code, fix bugs,...
### 5. Set up bot on Render (for free)
- Create a web service of the project
- Start command: ```python main.py```
- Deploy it and.. done!

## 🗂️ Project Structure
```
MicroMightyBot/
├── .env # Environment variables
├── LICENSE # License file
├── requirements.txt # Project dependencies
├── changelog.md # Change log file
├── main.py # Bot code
├── exceptions.py # File to store the bot's custom exceptions
├── status_web.py # File for UpTimeRobot and web server
└── README.md # Project documentation
```

## 🌟 Contributing
Feel free to submit issues or suggest features (in [Pull Request](https://github.com/Tony14261/MicroMightyBot/pulls)). Contributions are always welcome!

## 📜 License
This project is licensed under the [CC-BY-NC-SA License](https://creativecommons.org/licenses/by-nc-sa/4.0/).

## 📞 Contact
Discord server: [Invite link](https://discord.gg/bJ8PaFREj2) \
If you encounter any issues or want to suggest a feature, feel free to report or contact me.