- Python 100%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| modules | ||
| .gitignore | ||
| build-order.json | ||
| build.py | ||
| README.md | ||
Alias Builder for Avrae Aliases
This repository is a general template for building aliases with the alias builder.
How this works.
This repository provides 2 things:
build-order.jsonbuild.py
The build-order.json file defines the order in which the alias should be built.
It also defines how each module should be loaded as:
- std (standard): it loads as it is.
- func (function): it creates the module as a function, you have to pass the function name to it
- args (arguments): it loads the module as a function with arguments, you have to pass both the function name and the argument to it for it to work.
Each module also requires a pointed path to the location of the module.
It is also worth noting that the build-order.json file defines each alias at the top.
The build.py file instead is the script for which you have to run in order to build the alias.
It reads off the build-order.json file and builds on it.
The final aliases will be loaded in the dist/ directory.
How to use
To use this repository, you simply clone the repository, then you create each modules you want under the modules/ folder, then you add the modules along with their type and path to the build-order.json (after defining the alias name of course), then you simply run python build.py.
This will create the final alias in a newly created dist/ directory.