summaryrefslogtreecommitdiff
path: root/plugins/status.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/status.py')
-rw-r--r--plugins/status.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/plugins/status.py b/plugins/status.py
index b14e5cab..fd50481b 100644
--- a/plugins/status.py
+++ b/plugins/status.py
@@ -27,14 +27,17 @@ Aliases
"""
from poezio.plugin import BasePlugin
+
class Plugin(BasePlugin):
"""
Adds several convenient aliases to /status command
"""
+
def init(self):
for st in ('dnd', 'busy', 'afk', 'chat', 'xa', 'away', 'available'):
- self.api.add_command(st,
- lambda line,st=st: self.api.run_command('/status ' + st + ' "'+line+'"'),
- usage='[status message]',
- short='Set your status as %s' % st,
- help='Set your status as %s' % st)
+ self.api.add_command(
+ st,
+ lambda line, st=st: self.api.run_command('/status ' + st + ' "' + line + '"'),
+ usage='[status message]',
+ short='Set your status as %s' % st,
+ help='Set your status as %s' % st)