Black everything

This commit is contained in:
Felipe M 2020-12-13 08:46:09 +01:00
parent 0b06098e6b
commit c8c5fefabc
Signed by: fmartingr
GPG key ID: 716BC147715E716F
13 changed files with 72 additions and 30 deletions

View file

@ -17,7 +17,9 @@ class LoquitoPlugin(Plugin):
@classmethod
def on_message(cls, message, **kwargs):
if "lo quito" in message.text.lower():
yield Message(chat=message.chat, reply_to=message.id, text="Loquito tu.",)
yield Message(
chat=message.chat, reply_to=message.id, text="Loquito tu.",
)
class DicePlugin(Plugin):
@ -42,4 +44,8 @@ class CoinPlugin(Plugin):
@classmethod
def on_message(cls, message: Message, **kwargs):
if message.text.startswith("!coin"):
yield Message(chat=message.chat, reply_to=message.id, text=random.choice(("heads", "tails")))
yield Message(
chat=message.chat,
reply_to=message.id,
text=random.choice(("heads", "tails")),
)