merge mem/sys
This commit is contained in:
parent
d717292c13
commit
9398190a5d
6 changed files with 9 additions and 10 deletions
0
plugins/data/itemids.txt
Normal file → Executable file
0
plugins/data/itemids.txt
Normal file → Executable file
0
plugins/data/recipes.txt
Normal file → Executable file
0
plugins/data/recipes.txt
Normal file → Executable file
0
plugins/mcitems.py
Normal file → Executable file
0
plugins/mcitems.py
Normal file → Executable file
|
@ -61,12 +61,3 @@ def onjoin(paraml, conn=None, bot=None):
|
||||||
while True:
|
while True:
|
||||||
time.sleep(delay)
|
time.sleep(delay)
|
||||||
conn.cmd('PING', [conn.nick])
|
conn.cmd('PING', [conn.nick])
|
||||||
|
|
||||||
# system info command
|
|
||||||
@hook.command(autohelp=False)
|
|
||||||
def system(inp):
|
|
||||||
".system -- Retrieves information about the host system."
|
|
||||||
python_version = platform.python_version()
|
|
||||||
os = platform.platform(aliased=True)
|
|
||||||
cpu = platform.machine()
|
|
||||||
return "Platform: %s, Python Version: %s, CPU: %s" % (os, python_version, cpu)
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
import platform
|
||||||
from util import hook
|
from util import hook
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,3 +26,11 @@ def mem(inp):
|
||||||
return 'Memory usage: \x02%d kB\x02' % total
|
return 'Memory usage: \x02%d kB\x02' % total
|
||||||
|
|
||||||
return mem.__doc__
|
return mem.__doc__
|
||||||
|
|
||||||
|
@hook.command(autohelp=False)
|
||||||
|
def sys(inp):
|
||||||
|
".sys -- Retrieves information about the host system."
|
||||||
|
python_version = platform.python_version()
|
||||||
|
os = platform.platform(aliased=True)
|
||||||
|
cpu = platform.machine()
|
||||||
|
return "Platform: %s, Python Version: %s, CPU: %s" % (os, python_version, cpu)
|
0
plugins/violence.py
Normal file → Executable file
0
plugins/violence.py
Normal file → Executable file
Reference in a new issue