A plugin for Chatterino both demonstrating that TSTL is capable enough and a somewhat useful feature.
The plugin:
- Completes simple commands (like
$ping
). - Understands the concept of subcommands (commands like
$alias
,$abb
,$set
). - Understands the
$pipe
command, you can complete commands inside of it (cannot use the_char
param yet). - Understands command parameters, you can complete parameter names (like
$rca description:
). - Understands that
$help
takes a command as an input.
- Ensure you are on a build after #5280.
- Just dump the contents of the repo into a new directory in your chatterino plugins directory.
- Enable in the settings
- Clone with submodules
npm i
- Optionally copy
data/config.dist.json
todata/config.json
and put in your username to download a list of your Supibot aliases automatically. - Use
make
to compile Typescript to Lua (if you deletedata/completions_generated.json
this will regenerate it)
- This involves executing basically arbitrary code from the supibot repo, ensure you are comfortable with that.
- Run
make update
to update/download thesupibot
submodule, regeneratedata/completions_generated.json
and rebuild the plugin
This uses json.lua
created by rxi, the project is available
here. The license may be found at the top of
the file. The Typescript definitions (json.d.ts
) for it were created by me.