2011-10-29 15:47:30 +00:00
|
|
|
from plugin import BasePlugin
|
|
|
|
|
|
|
|
class Plugin(BasePlugin):
|
|
|
|
"""
|
|
|
|
Adds several convenient aliases to /status command
|
|
|
|
"""
|
|
|
|
def init(self):
|
2013-03-01 18:25:31 +00:00
|
|
|
for st in ('dnd', 'busy', 'afk', 'chat', 'xa', 'away', 'available'):
|
|
|
|
self.add_command(st,
|
|
|
|
lambda line: self.core.command_status(st + ' "'+line+'"'),
|
|
|
|
usage='[status message]',
|
|
|
|
short='Set your status as %s' % st,
|
|
|
|
help='Set your status as %s' % st)
|