bottn/abed.py

10 lines
282 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
from mmpy_bot import Plugin, listen_to
from mmpy_bot import Message
class Abed(Plugin):
@listen_to(".*[Cc]ool.*")
async def wake_up(self, message: Message):
self.driver.reply_to(message, "cool, cool, cool.")