def handler(bot, source, target, message, match): bot.say(target, 'Matched {}'.format(match.group(1)))
def handler2(bot, source, target, message, **kwargs): bot.say(target, 'This is a second example')
def important_handler(bot, source, target, message, match): bot.say(target, 'Important {}'.format(match.group(1)))