input echo

This commit is contained in:
2021-11-04 22:51:50 +01:00
parent 37759d7b9f
commit b257784553
4 changed files with 21 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
export default function EchoCommand(args, context) {
if (args[1] != "on" && args[1] != "off") {
context.print(`Usage: echo <on/off>`);
} else {
context.setInputEcho(args[1] == "on" ? true : false);
context.print(`Command echo is now ${args[1]}`);
}
}