input echo
This commit is contained in:
8
src/engine/commands/echo.js
Normal file
8
src/engine/commands/echo.js
Normal 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]}`);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user