Skip to content

Allows running JavaScript and STscript code from code blocks in chat.

License

Notifications You must be signed in to change notification settings

SillyTavern/Extension-CodeRunner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Runner

This extension allows running JavaScript and STscript code from code blocks in chat.

If you can't see an execution button, edit the codeblock and specify the language manually after the opening triple backticks.

For JavaScript

``` => ```js

Calls to console and alert are redirected to the output block below the code.

To display anything in the final result, use return as the last statement.

For STscript

``` => ```stscript

To display anything in the final result, use any command that writes to the pipe as the last statement.

Security

The execution is sandboxed using SandboxJS, but please don't run anything that looks too sussy.

About

Allows running JavaScript and STscript code from code blocks in chat.

Topics

Resources

License

Stars

Watchers

Forks