Gally is an modular discord bot written in python and designed to be easily extensible.
The bot only includes the following command, any other fuctionality must be added bya extensions.
Command |
Description |
|
Bot owner only. Adds a server’s administrator. Usage: \add_admin <@user> |
|
Bot owner only. Removes an administrator. Usage: \del_admin <@admin> |
|
Admins only. Lists all the server’s administrators. Usage: \list_admins |
Command |
Description |
|
Bot owner only. List all the loaded extensions. Usage: \ext |
|
Bot owner only. Lists all the available extensions. Usage \list |
|
Bot owner only. Loads an extension. Usage: \load <extension name> |
|
Bot owner only. Reloads an extension. Usage: \rload <extension name> |
|
Bot owner only. Unloads an extension. Usage: \uload <extension name> |
- Quotes
-
Add and manage quotes (see quotes.asciidoc)
- Taboo
-
Play taboo (see taboo .asciidoc)
An extension has the following structure:
extension_name/ // (1) |- __init__.py |- ext.py // (2) |- requirements.txt // (3) |- ...
Where:
-
Is a directory called with the extension’s name.
-
This file must be included and must contain the extension’s code and a
setup
function that tells the bot how to load the extension. -
Same as a pip’s requirement file. This file is optional and if included the bot will call pip and install the dependencies listed on it. Keep in mind that some libraries may have dependencies outside of python that cannot be installed with pip and must be manually installed instead.
The extension must be inside the directory gally/extensions
, and can be loaded with the command
\load <extension name>
.