Creates a Discord server based on a template you layout, making it an easy and quick way to flesh out a server to fit your needs.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file auto-guild-1.0.1.tar.gz
.
File metadata
- Download URL: auto-guild-1.0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cff94412a9f0c9d579730fc6fc373ab1a4b5d609dd2860161738714a75b0e1a |
|
MD5 | 145a8e400b2e285cdd59dd65ba3d537a |
|
BLAKE2b-256 | 1c1b7bf562ec2f472cfb33976f00d5333845de6c77d4d422e9a2819d9330a31d |
File details
Details for the file auto_guild-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: auto_guild-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 114f4f04d02103740be5a6d1e030cfc1471d6d1fa02dbf85c3f39a5b597b4fab |
|
MD5 | 3cead7de68da9ae1de90b2189813ece2 |
|
BLAKE2b-256 | 01c51a25a816657199cd1bd733f7309aab002a8b69b5796a3e2d8d32b0f5425c |