Glyph's code is open source for safety purposes only. You can still use our code, but you are not allowed to claim that it's yours, we will have to reach out to you.
this project uses the rye package manager to manage dependencies. you can find the commands to install rye from the website.
to install the dependencies, run rye sync
.
some configuration values are stored using environment variables. by default, the code is able to load .env
files.
you can find the required variables in the .env.example
file.
to run the bot, you can run the main.py
file. you should first enter the python environment by running . .venv/bin/activate
on linux or .venv\Scripts\activate
on windows.
Glyph's code is divided into 3 main parts:
this is where the primary code is located. the core could essentially run on it's own.
this is where the commands are located. the cogs are loaded into the core and are used to extend the functionality of the bot. almost all commands are located in the cogs.
this is where the database code is located. the db code is used to interact with the database and store data.