# core/plugs/usage.py
#
#
""" show usage output of the bot (ps). """
__copyright__ = "Copyright 2015, B.H.J Thate"
## IMPORTS
from core.kernel import kernel
import os
## CMNDS
[docs]def status_usage(event):
data = os.popen("ps -p %s -o pid,tid,class,rtprio,ni,pri,psr,rss,pcpu,stat,wchan:14,comm" % os.getpid()).read().strip()
event.reply(str(data))
kernel.register("status.usage", status_usage)