assassin-bug/src/engine/commands/echo.js

8 lines
287 B
JavaScript
Raw Normal View History

2021-11-04 21:51:50 +00:00
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);
2021-11-05 13:28:01 +00:00
context.print(`Command echo is now ${args[1]}.`);
2021-11-04 21:51:50 +00:00
}
}