# This file is released into the public domain; see http://unlicense.org/
# module info
modinfo = {
'author': 'Erebus Team',
'license': 'public domain',
# This file is released into the public domain; see http://unlicense.org/
# module info
modinfo = {
'author': 'Erebus Team',
'license': 'public domain',
def ram(bot, user, chan, realtarget, *args):
if chan is not None and realtarget == chan.name: replyto = chan
else: replyto = user
def ram(bot, user, chan, realtarget, *args):
if chan is not None and realtarget == chan.name: replyto = chan
else: replyto = user
def resources(bot, user, chan, realtarget, *args):
if chan is not None and realtarget == chan.name: replyto = chan
else: replyto = user
def resources(bot, user, chan, realtarget, *args):
if chan is not None and realtarget == chan.name: replyto = chan
else: replyto = user
('utime (s)', res.ru_utime),
('stime (s)', res.ru_stime),
('utime (s)', res.ru_utime),
('stime (s)', res.ru_stime),
('I/O (blocks)', res.ru_inblock+res.ru_oublock),
('page faults', res.ru_majflt),
('signals', res.ru_nsignals),
('context switches (voluntary)', res.ru_nvcsw),
('context switches (involuntary)', res.ru_nivcsw),
('I/O (blocks)', res.ru_inblock+res.ru_oublock),
('page faults', res.ru_majflt),
('signals', res.ru_nsignals),
('context switches (voluntary)', res.ru_nvcsw),
('context switches (involuntary)', res.ru_nivcsw),
- ]:
- bot.msg(replyto, "- %s: %r" % (i, v))
- bot.msg(replyto, "EOL.")
+ ):
+ bot.slowmsg(replyto, "- %s: %r" % (i, v))
+ bot.slowmsg(replyto, "EOL.")