Conditions | 3 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
1 | from . import BotCommand |
||
7 | def default(self, message): |
||
8 | if message.text and message.text == '/clear do as I say': |
||
9 | tab = self._db.get_or_create_tab(message.chat.id)[0] |
||
10 | tab.clear() |
||
11 | self.bot.say(message, 'Tab cleared') |
||
12 | |||
13 | else: |
||
14 | self.bot.say(message, "To really clear say '/clear do as I say'") |
||
15 |