forked from Firepup650/FireBot
merge
This commit is contained in:
commit
d175c19f35
1 changed files with 7 additions and 0 deletions
|
@ -9,6 +9,7 @@ from dotenv import load_dotenv
|
|||
from pythonlangutil.overload import Overload, signature
|
||||
from datetime import datetime as dt
|
||||
from logs import log
|
||||
from subprocess import run, PIPE
|
||||
|
||||
load_dotenv()
|
||||
|
||||
|
@ -360,6 +361,12 @@ def main():
|
|||
f"{name}: pong",
|
||||
chan,
|
||||
)
|
||||
elif mfind(message, ["uptime"]):
|
||||
uptime = run(["uptime","-p"], stdout=PIPE).stdout.decode().strip()
|
||||
sendmsg(
|
||||
f"Uptime: {uptime}",
|
||||
chan,
|
||||
)
|
||||
elif mfind(message, ["amIAdmin"]):
|
||||
sendmsg(
|
||||
f"{name.lower()} in {adminnames} == {name.lower() in adminnames}",
|
||||
|
|
Loading…
Reference in a new issue