Skip to content

Instantly share code, notes, and snippets.

@bnadland
Created May 10, 2014 00:56
Show Gist options
  • Save bnadland/1f1d10d7ab953541e15c to your computer and use it in GitHub Desktop.
Save bnadland/1f1d10d7ab953541e15c to your computer and use it in GitHub Desktop.
willie-pystada module
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