From 584b396e2b242db08000811f83deb77efcf213af Mon Sep 17 00:00:00 2001 From: Malasaur Date: Sat, 30 Aug 2025 15:07:48 +0200 Subject: [PATCH] Added Console module --- modules/console.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 modules/console.py 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))