merge mem/sys

This commit is contained in:
neersighted 2012-03-29 17:16:31 -07:00
parent d717292c13
commit 9398190a5d
6 changed files with 9 additions and 10 deletions

0
plugins/data/itemids.txt Normal file → Executable file
View file

0
plugins/data/recipes.txt Normal file → Executable file
View file

0
plugins/mcitems.py Normal file → Executable file
View file

View file

@ -61,12 +61,3 @@ def onjoin(paraml, conn=None, bot=None):
while True:
time.sleep(delay)
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)

View file

@ -1,6 +1,6 @@
import os
import re
import platform
from util import hook
@ -26,3 +26,11 @@ def mem(inp):
return 'Memory usage: \x02%d kB\x02' % total
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
View file