def wanna(irc, sender, channel, *args): if args: clean = args[0].translate(string.maketrans("", ""), string.punctuation) if clean.lower() == "cracker": irc.describe(channel, "squawks: yes!") else: irc.describe(channel, "flies away in disgust")
def who(irc, sender, channel, *args): irc.describe(channel, "is a bot. see http://github.com/spladug/harold")
def debug(irc, sender, channel, *args): instance_name = os.environ.get("name", "main") if not args or args[0] == instance_name: irc.describe(channel, "instance `%s` is up!" % os.environ.get("name", "main"))
def who(irc, sender, channel, *args): irc.describe(channel, "is a bot. see https://github.com/spladug/harold")
def debug(irc, sender, channel, *args): irc.describe(channel, "instance `%s` is up!" % os.environ.get("name", "main"))