Created
May 10, 2014 00:56
-
-
Save bnadland/1f1d10d7ab953541e15c to your computer and use it in GitHub Desktop.
willie-pystada module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from re import search | |
from willie import module | |
@module.rule(r".*") | |
def datefoo(bot, trigger): | |
if trigger.nick == "github": | |
m = search(r".*(\d{2}. \S+ \d+)", trigger) | |
if m: | |
topic = "Mi, {} um 19:30 || https://pystada.github.io".format(m.group(1)) | |
bot.write(("TOPIC", trigger.sender.lower() + " :" + topic)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment