Beispiel #1
0
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")
Beispiel #2
0
def who(irc, sender, channel, *args):
    irc.describe(channel, "is a bot. see http://github.com/spladug/harold")
Beispiel #3
0
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"))
Beispiel #4
0
def who(irc, sender, channel, *args):
    irc.describe(channel, "is a bot. see https://github.com/spladug/harold")
Beispiel #5
0
def debug(irc, sender, channel, *args):
    irc.describe(channel,
                 "instance `%s` is up!" % os.environ.get("name", "main"))
Beispiel #6
0
def debug(irc, sender, channel, *args):
    irc.describe(channel, "instance `%s` is up!" % os.environ.get("name", "main"))
Beispiel #7
0
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"))