summaryrefslogtreecommitdiff
path: root/plugins/stoi.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/stoi.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/stoi.py')
-rw-r--r--plugins/stoi.py20
1 files changed, 11 insertions, 9 deletions
diff --git a/plugins/stoi.py b/plugins/stoi.py
index f3881879..04d84881 100644
--- a/plugins/stoi.py
+++ b/plugins/stoi.py
@@ -23,18 +23,21 @@ import string
from poezio import xhtml
import random
-char_we_dont_want = string.punctuation+' ’„“”…«»'
+char_we_dont_want = string.punctuation + ' ’„“”…«»'
+
class Plugin(BasePlugin):
def init(self):
for tab_type in (tabs.MucTab, tabs.PrivateTab, tabs.ConversationTab):
- self.api.add_tab_command(tab_type, 'stoi',
- handler=self.stoi,
- help="Repeats the last word of the last "
- "message in the conversation, and "
- "use it in an annoying “C’est toi "
- "le” sentence.",
- short='C’est toi le stoi.')
+ self.api.add_tab_command(
+ tab_type,
+ 'stoi',
+ handler=self.stoi,
+ help="Repeats the last word of the last "
+ "message in the conversation, and "
+ "use it in an annoying “C’est toi "
+ "le” sentence.",
+ short='C’est toi le stoi.')
def stoi(self, args):
messages = self.api.get_conversation_messages()
@@ -55,4 +58,3 @@ class Plugin(BasePlugin):
else:
msg = intro + ('le %s' % last_word)
self.api.send_message(msg)
-