Loading repository data…
Loading repository data…
0ab2bcf6 / repository
A minimalistic framework for building a highly individualized Discord bot. This repository provides a barebones structure with key components and modules for rapid customization and development. The focus is on simplicity, extensibility, and adaptability for unique user needs.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A barebones structure for a self-hosted Discord bot with custom features, designed for easy individualization and extensibility.
pyproject.toml. The dependencies are automatically installed when installing your project locally using pipsrc/personal-discord-bot/cookies.txt (in this exact path) to use the music bot for youtube (detailed instructions listed here)The bot uses a src/personal-discord-bot/config.yaml file to manage settings for the bot and its cogs. This file should be located in the project root and contain:
src/personal-discord-bot/config.yaml to match your desired setup before starting the bot.To test or run the bot, install the project locally. I recommend creating a virtual environment to isolate dependencies and avoid conflicts with your system’s Python environment.
Set up a virtual environment to keep your project dependencies separate:
python3 -m venv botenv
Activate the virtual environment:
On Linux/macOS:
source botenv/bin/activate
And on Windows:
.\botenv\Scripts\Activate.ps1
botenv\Scripts\activate.bat
Once activated, your terminal should show (botenv) to indicate the virtual environment is active.
Now navigate into the root folder and install the project locally:
python3 -m pip install -e .
To run the bot effectively, follow these steps, especially if hosting it on a remote server:
Use the screen tool to run the bot in a detachable terminal session:
screen -S discordbot
This creates a session named discordbot
After creating the screen you should be attached to it. If you’ve detached (see below), reattach to the session:
screen -r discordbot
Ensure your virtual environment is active (see Virtual Environment). Run the bot with:
python3 -m personal-discord-bot
To leave the bot running in the background, press Ctrl+A, then D. This detaches you without stopping the bot.
To stop the bot and close the session, reattach with screen -r discordbot, stop the bot (Ctrl+C), then type:
exit