summaryrefslogtreecommitdiff
path: root/plugins/status.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-08-15 13:13:17 +0200
committermathieui <mathieui@mathieui.net>2018-08-15 13:13:17 +0200
commit6e13b8b73572f9c0ac9b5c683b98a475afbeab38 (patch)
tree7dae86588339a8cf144b2d98c9280f28646341a9 /plugins/status.py
parentd1b624753bb5371cf287cc9d86bb685593a99315 (diff)
downloadpoezio-6e13b8b73572f9c0ac9b5c683b98a475afbeab38.tar.gz
poezio-6e13b8b73572f9c0ac9b5c683b98a475afbeab38.tar.bz2
poezio-6e13b8b73572f9c0ac9b5c683b98a475afbeab38.tar.xz
poezio-6e13b8b73572f9c0ac9b5c683b98a475afbeab38.zip
yapf -rip on plugins
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)