summaryrefslogtreecommitdiff
path: root/plugins/figlet.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/figlet.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/figlet.py')
-rw-r--r--plugins/figlet.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/figlet.py b/plugins/figlet.py
index 6e82381b..b8fcb813 100644
--- a/plugins/figlet.py
+++ b/plugins/figlet.py
@@ -14,6 +14,7 @@ Say something in a Chat tab.
from poezio.plugin import BasePlugin
import subprocess
+
class Plugin(BasePlugin):
def init(self):
self.api.add_event_handler('muc_say', self.figletize)
@@ -21,6 +22,7 @@ class Plugin(BasePlugin):
self.api.add_event_handler('private_say', self.figletize)
def figletize(self, msg, tab):
- process = subprocess.Popen(['figlet', '--', msg['body']], stdout=subprocess.PIPE)
+ process = subprocess.Popen(
+ ['figlet', '--', msg['body']], stdout=subprocess.PIPE)
result = process.communicate()[0].decode('utf-8')
msg['body'] = result