auto_guild
Creates a Discord server based on a template you lay out, making it an easy and quick way to flesh out a server to fit your needs.
Installation
pip
You can install the project using pip:
Linux/Mac
$ pip3 install auto_guild
Windows
> py -m pip install auto_guild
Source
This project uses PDM, a package manager that implements PEP 582, please visit https://pdm.fming.dev/#installation for installation instructions.
To install the project, clone the repository and install the dependencies.
$ git clone https://github.com/MrHemlock/auto_guild.git
$ pdm install
Usage
The script requires 3 things in order to run:
- a server template yaml
- a token for the bot you want to make the server
- a user ID for the user you want to transfer ownership to
auto_guild requires that you provide it with either a server name that you want to use (if you want it to create a blank server) or provide it with a file path to a server template yaml.
The BOT_TOKEN and USER_ID can either be passed as arguments on the command-line, placed in a .env file, or come from your system's environmental variables.
Example:
usage: auto_guild.py [-h] (-s STRUCTURE | -n SERVER_NAME) [-u USER_ID] [-t BOT_TOKEN]
$ python auto_guild.py -s examples/pydis_bot.yml
$ python auto_guild.py -n "Hemlock's Cool Server" -u USER_ID -t BOT_TOKEN
Server Template Format
The server template yaml format is as follows:
name: server_name_here
categories:
category_name:
- channel_name: channel_type
roles:
- role_name
category_name and channel_name should be replaced with the relevant names you desire. For a practical example, see the pydis_bot.yml file in the examples folder.
Release files for auto-guild 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| auto-guild-1.0.1.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| auto_guild-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.7 kB
Release files / auto-guild-1.0.1.tar.gz
| Download URL | auto-guild-1.0.1.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9cff94412a9f0c9d579730fc6fc373ab1a4b5d609dd2860161738714a75b0e1a
|
|
BLAKE2b-256 checksum How to use checksums |
1c1b7bf562ec2f472cfb33976f00d5333845de6c77d4d422e9a2819d9330a31d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / auto_guild-1.0.1-py3-none-any.whl
| Download URL | auto_guild-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
114f4f04d02103740be5a6d1e030cfc1471d6d1fa02dbf85c3f39a5b597b4fab
|
|
BLAKE2b-256 checksum How to use checksums |
01c51a25a816657199cd1bd733f7309aab002a8b69b5796a3e2d8d32b0f5425c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|