Hello, AmoghTheCool here! I made a JS framework called...
WeirdoJS is a simple JS framework that makes making web-terminal bots, assistants, and games easier.
WeirdoJS. Then do this setup:
To output things into the command line, just do
To create a simple command like
clear, just type this:
Protip: To clear the console easily, just do
Using WeirdoVars (beta)
WeirdoVars is a dict of variables that make using
At the beginnings of programs, use
weirdo.getLsVar() to get the localStorage variable, if it is not null. If it is null, the function will return null (or void maybe idk).
To make dynamic commands (basically commands that take in ONLY ONE parameter), then do this:
:is not allowed in the dynamic command's name.
When the user types a command like
Say hello to :Bob, it will output
Note, to create multiple parameters, use
WeirdoJS.parse("text", "separator")and parse the parameter. This will return a list of parameters.
Note#2, you can use plain JS too inside the command bodies.
Contribute to Weirdo here
@sojs, it isn't supposed to... this doesn't have an html file. You have to create another repl. The docs contain more information. To see a (working) demo, click here. This actually only has the class, so if you want to see the source for it, type
also, sorry if the demo was broken, I accidentally put a semicolon instead of a comma in the middle of an object xD