Skip to main content

An easy drop in user-provided Templating system.

Project description

bTagScript

Documentation Status

TagScript, but better, with more features then you could ever need!

Features:

  • Extra Syntax Options
  • More Blocks
bTagScriptBasic

Documentation on the bTagScript library can be found here.

What?

TagScript allows you to create low level code, quickly, and easily. This is meant to be used with discord.py 2.0 and is not compatible with other versions.

Credits

This repository is a fork of Phenom4n4n's fork of JonSnowbd's TagScript, a string templating language.

Dependencies

Python 3.8+

discord.py 2.0

pyparsing

Installation

Download through pip

pip(3) install bTagScript

Download the latest version through github:

pip(3) install https://github.com/Leg3ndary/bTagScript

Download from a commit:

pip(3) install git+https://github.com/Leg3ndary/bTagScript.git@<COMMIT_HASH>

Install for editing/development:

git clone https://github.com/Leg3ndary/bTagScript.git
pip(3) install -e ./bTagScript

Benchmarks (Performance Testing)

July 08, 2022

Testing for this benchmark used the following seeds and test strings, this was ran 1,000 times.

Seeds: {message: Hello, this is my message.}
Test String: {message} {#:1,2,3,4,5,6,7,8,9,10} {range:1-9} {$variablename:Hello World} {variablename} {message} {strf:Its %A}

Note that this was adjusted for different syntax, {=(variablename):Hello World} vs {$variablename:Hello World}

bTagScript will likely get worse and worse as more blocks are added...

2.6.9 bTagScript: 0.08033132553100586 Seconds

2.6.2 TagScript: 0.08630657196044922 Seconds

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bTagScript-4.0.0.tar.gz (32.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page