summaryrefslogtreecommitdiff
path: root/plugins/figlet.py
diff options
context:
space:
mode:
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