Added Console module
This commit is contained in:
parent
7f0b2937c4
commit
584b396e2b
1 changed files with 14 additions and 0 deletions
14
modules/console.py
Normal file
14
modules/console.py
Normal file
|
|
@ -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))
|
||||||
Loading…
Add table
Add a link
Reference in a new issue