butterrobot/butterrobot_plugins_contrib/fun.py
2020-09-17 16:09:31 +02:00

11 lines
333 B
Python

from butterrobot.plugins import Plugin
from butterrobot.objects import Message
class LoquitoPlugin(Plugin):
id = "contrib/fun/loquito"
@classmethod
async def on_message(cls, message):
if "lo quito" in message.text.lower():
yield Message(chat=message.chat, reply_to=message.id, text="Loquito tu.",)