An easy drop in user-provided Templating system.
Project description
Information
This repository is a fork of JonSnowbd's TagScript, a string templating language. This fork adds support for Discord object adapters and a couple Discord related blocks, as well as multiple utility blocks. Additionally, several tweaks have been made to the engine's behavior.
This TagScriptEngine is used on MELON, a Discord bot. An example implementation can be found in the Tags cog.
Additional documentation on the TagScriptEngine library can be found here.
Installation
Download the latest version through pip:
pip(3) install AdvancedTagScriptEngine
Download from a commit:
pip(3) install git+https://github.com/japandotorg/TagScriptEngine.git@<COMMIT_HASH>
Install for editing/development:
git clone https://github.com/japandotorg/TagScriptEngine.git
pip(3) install -e ./TagScriptEngine
What?
AdvancedTagScriptEngine is a drop in easy to use string interpreter that lets you provide users with ways of customizing their profiles or chat rooms with interactive text.
For example TagScript comes out of the box with a random block that would let users provide a template that produces a new result each time its ran, or assign math and variables for later use.
Dependencies
Python 3.8+
pyparsing
discord.py
Red-DiscordBot
[optional]
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 AdvancedTagScriptEngine-3.2.0-py3-none-any.whl
.
File metadata
- Download URL: AdvancedTagScriptEngine-3.2.0-py3-none-any.whl
- Upload date:
- Size: 51.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3ac71cbf0a9a1ad14f46bf198666748033785a7ba63bd886c6db3d08f2f50f8 |
|
MD5 | 7aa67b3c8997a6e94e45bfa2917faae4 |
|
BLAKE2b-256 | cd85078ac83d30c7f5bb11ab25344ca9a01d2f343cd2deb7cf19b78de5bc4022 |