Welcome to LousyBot — a modular, customizable Discord bot created by LousyBook01 with actual LLMS.
LousyBot features multi-provider AI support, robust config management, and a friendly codebase for easy extension!
- 🔒 Secure: Sensitive config files are never committed.
- 🤖 AI integration via flexible provider/model system (no hardcoded OpenAI keys!).
- 📝 Easily configurable via
.envand plaintext config files. - 😺 Fun, expressive, and emoji-rich interaction style.
- 🛠️ Extensible: Clean, modular code, ready for plugins and custom logic.
-
Clone the repo:
git clone https://github.com/LousyBook94/LousyBot.git cd LousyBot -
Install dependencies:
pip install -r requirements.txt
-
Configure environment:
-
Copy
.env.exampleto.envand fill in your Discord bot token and other variables.copy .env.example .env
-
Copy
model/provider.txt.exampletomodel/provider.txt,model/model.txtis already provided, see both .example files for details on structurecopy model/provider.txt.example model/provider.txt
-
-
Start the bot:
python bot.py
5 (Optional) Modify admin list
- Copy
admin.txt.exampletoadmin.txtand add your admin user IDs and remove mine probably. - Restart the bot.
-
Not seeing slash commands?
- Make sure your id is in the admin list and type in '!sync' to any of the allowed channels
-
Bot not running?
- Make sure to run 'pip install -r requirements.txt' first
.
├── .env.example
├── .gitignore
├── bot.py
├── bot.txt
├── cache/
├── lousybot.png
├── model/
│ ├── models.txt
│ ├── models.txt.example
│ └── provider.txt.example
├── README.md
├── requirements.txt
├── structure.md
└── src/
├── __init__.py
├── ai_processing.py
├── cache_utils.py
├── commands.py
├── config.py
├── mention_utils.py
└── provider_config.py
See structure.md for detailed explanations of each file and directory.
- Never commit
.envormodel/provider.txt! These files are in.gitignoreby default. - Only
.env.exampleandprovider.txt.exampleare shared for onboarding.
Pull requests and suggestions are welcome!
Please update structure.md if you add new modules or important files.
- Created by LousyBook01
- Powered by Python, discord.py, and modern AI APIs
Happy coding! ✨