def wanna(irc, sender, channel, *args): if args: clean = args[0].translate(string.maketrans("", ""), string.punctuation) if clean.lower() == "cracker": irc.me(channel, "squawks: yes!") else: irc.me(channel, "flies away in disgust")
def who(irc, sender, channel, *args): irc.me(channel, "is a bot. see http://github.com/spladug/harold")