mrhemlock / auto_guild Goto Github PK
View Code? Open in Web Editor NEWCreates 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.
License: MIT License
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.
License: MIT License
Currently, categories do not include their IDs in the end result, making it more difficult to use and might require users to manually add them at the end. I'm proposing the following modification to the current format:
categories:
super_secret:
- id: number
- channel: text
In this case, id
should be a reserved keyword used specifically for the category IDs.
This is currently lacking from the readme, and must be added for clarity
The YAML library allows you to add arbitrary constructors, and use variables which are parsed at runtime in your config. Here are a few examples:
These are currently unsupported by the tool, as it'll error on the unknown constructors, and won't carry variables across. This is problematic as it means end users will have to modify their configs by hand at the end to add the variables back, and config makers can't use any constructors.
I see a few possible options here:
Constructors, representers, resolvers
.Currently, the tool assumes the configurations (roles, channels) are at the root level of the yaml. It would be useful if there was an optional field to direct it at a field in the yaml where those configurations are, so that the yaml can have a different structure (e.g if it serves other purposes as well).
Based on an idea I proposed on Discord, it could be quite beneficial to generate those configs (or use the data), by just reading the specifics of a given guild. This could also solve the problem with roles, and server name.
Currently, auto_guild can only understand text
and voice
as channel types, but if a number was allowed, then existing configs can be used as templates. For instance, the following is what the production config for the pydis bot would look like:
categories:
information:
- welcome: text
In the proposed system, text
can be a number: welcome: 123456789
. Under the proposed system, any unrecognized number would default to text
, which in the case of the python bot is just fine.
Alternatively, channels could be converted to objects like categories with a type and id key. This introduces more bloat, but makes it more feasible to use the config and template as one.
Role parser starts out assigning the everyone role by default to the payload. My question is if the yaml file contains the everyone role what would happen? would it update the everyone id or duplicate the role?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.