GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PenguBot/PenguScript: Text based tags parser for Discord bots.

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
package.json
package.json
 
 

Repository files navigation

Stitchscript

Stitchscript is a heavily WIP text parser, made for Discord bots.

Usage

Calling the parse function on a tag will parse it and return the parsed input. Parse is an async function.

const parse = require('stitchscript');

async function run() {
    console.log(await parse('The sin of 30 is {sin:30}', data));
}

run();

// the sin of 30 is 0.50

Data

Discord renderers require data to be passed to the parse function. Currently, the only required data is args: an array of arguments used in the context, guild: the guild instance this was run in, and user: the user executing the command.

Args

To use args with the parser, attach an array of args to the data object.

console.log(await parser.parse('The sin of {arg1} is {sin:arg1}.'), {
    args: [30]
});

// the sin of 30 is 0.50

Contributing

To contribute, open a pull request. Ensure it follows the ESLint rules according to the eslintrc file, and your code is clean and well commented.

Other

While stitchscript was primarily made for Discord bots, it can be used by other applications too. Currently, the only "external" renderers are the math ones, but more will be added soon.

About

Text based tags parser for Discord bots.

Resources

Readme
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.