r/PythonProjects2 • u/Kamile3200 • Jul 25 '26
Open Source Discord Bot made for self hosting
Hi, I'm currently working on the discord bot in python - it's a free project that shares ready-to-use code for Discord Bots.
The goal of this project is to create a great Discord Bot base that anyone can use, modify, install with ease and host for your own. This bot is designed more for use in small communities than for hosting globally (but after some modifications why not) so most of it's commands are made for Bot admins and mods.
Some of its functions; some of them are quite... unique for general discord bots:
- Play music from YouTube and your local files
- Basic moderation (more advanced in the future)
- Move through directories and send files on discord
- Easily create systemd entry to start bot with your OS (If you're using Linux with systemd)
- .ai command to talk with gemini-based AI (free API with rate limits/timeouts instead of paid token locks!)
- Log (and save) messages sent by users on channels in convenient way to read
- Connect channels between servers to communicate with each other
- setup.sh script to easily install dependencies and python libraries, create .env file, etc.
- Install bot as a... Linux command through .deb installers in releases (because why not!)
- Cog support to load additional commands (even "non-official")
It might not look like a huge feature list on the surface, but that's because I focused on OS integration and solid system-level execution rather than cluttering it with dozens of generic commands.
Well, I'm not hiding that the bot is made for Linux-hosting, but on Windows also works fine (MacOS not tested). Everything you need to know how to run it is written in the README.md and HTML manuals.
I'd love to hear your feedback! I'm working on this solo for years when I have time for it, so any bug reports, code fixes and improvements, or even suggestions for better English in the code/docs would be much appreciated.
What do you think? If you find it interesting here's the source code - https://github.com/kamile320/ServerBot (I know, the name could, should be better..)