diff --git a/modules/console.py b/modules/console.py new file mode 100644 index 0000000..5423ab4 --- /dev/null +++ b/modules/console.py @@ -0,0 +1,14 @@ +import libminecraft +import libsignal +import libcommon + +RetardsServer = libcommon.Group( + "Retards Server", "5PlbXaPmWZQkhmuyyC/fkWTy8K+BqomjK7byVDyxmpo=") + + +@libsignal.onMessage(RetardsServer) +def signalControl(usr: str, msg: str): + if usr == "Malasaur" and msg.startswith("!"): + match msg.split(): + case ["!command", *cmd] | ["!cmd", *cmd] | ["!run", *cmd] | ["!exec", *cmd]: + libminecraft.sendCommand(' '.join(cmd))