<commit_before>from IRCResponse import IRCResponse, ResponseType
from ModuleInterface import ModuleInterface
import random


class Module(ModuleInterface):
    help = "IdentCheck - Find out your TRUE identity... WHAT ARE YOU?"

    def shouldTrigger(self, message):
        return True

    def onTrigger(self, Hubbot, message):
        if "RoBoBo" not in Hubbot.channels[message.ReplyTo].Users.keys():
            if message.MessageString.lower().startswith("meow"):
                roll = random.randint(1,20)
                if message.User.Name == "BillTheCat":
                    return IRCResponse(ResponseType.Say, "Uhm... Hi?", message.ReplyTo)
                if message.User.Name.startswith("Caitiri") or message.User.Name == "Caity":
                    return IRCResponse(ResponseType.Do, 'points at {}, "KITTEH!"'.format(message.User.Name), message.ReplyTo)
                elif roll == 1:
                    reroll = random.randint(1,20)
                    if reroll == 20:
                        return IRCResponse(ResponseType.Do, 'points at {}, "CRITICAL PUPPEH!"'.format(message.User.Name), message.ReplyTo), IRCResponse(ResponseType.Say, "Wait, what?", message.ReplyTo)
                    else:
                        return IRCResponse(ResponseType.Do, 'points at {}, "NOT KITTEH."'.format(message.User.Name), message.ReplyTo)
                elif (roll > 1) and (roll < 8):
                    return IRCResponse(ResponseType.Do, 'points at {}, "NOT KITTEH."'.format(message.User.Name), message.ReplyTo)
                elif (roll > 7) and (roll < 14):
                    return IRCResponse(ResponseType.Do, 'points at {}, "MEHBEH KITTEH?"'.format(message.User.Name), message.ReplyTo)
                elif (roll > 13) and (roll < 20):
                    return IRCResponse(ResponseType.Do, 'points at {}, "KITTEH!"'.format(message.User.Name), message.ReplyTo)
                else:
                    return IRCResponse(ResponseType.Do, 'points at {}, "CRITICAL KITTEH!"'.format(message.User.Name), message.ReplyTo)
            if message.MessageString.lower().startswith("rawr"):
                roll = random.randint(1,20)
                if (message.User.Name == "Itazu") or (message.User.Name == "Trahsi") or (message.User.Name == "reptile"):
                    return IRCResponse(ResponseType.Say, "{} is a DRAGON!".format(message.User.Name) , message.ReplyTo)
                elif roll == 1:
                    reroll = random.randint(1,20)
                    if reroll == 20:
                        return IRCResponse(ResponseType.Say, " is SECRETLY A DRAGON!".format(message.User.Name), message.ReplyTo)
                    else:
                        return IRCResponse(ResponseType.Say, "{} is NOT a DINOSAUR.".format(message.User.Name), message.ReplyTo)
                elif (roll > 1) and (roll < 8):
                    return IRCResponse(ResponseType.Say, "{} is NOT a DINOSAUR.".format(message.User.Name), message.ReplyTo)
                elif (roll > 7) and (roll < 14):
                    return IRCResponse(ResponseType.Say, "{} MIGHT be a DINOSAUR.".format(message.User.Name), message.ReplyTo)
                elif (roll > 13) and (roll < 20):
                    return IRCResponse(ResponseType.Say, "{} is a DINOSAUR.".format(message.User.Name), message.ReplyTo)
                else:
                    return IRCResponse(ResponseType.Say, "{} is a CRITICAL DINOSAUR!".format(message.User.Name), message.ReplyTo)<commit_msg>[IdentCheck] Make sure we're in a channel first.<commit_after>from IRCResponse import IRCResponse, ResponseType
from ModuleInterface import ModuleInterface
import random


class Module(ModuleInterface):
    help = "IdentCheck - Find out your TRUE identity... WHAT ARE YOU?"

    def shouldTrigger(self, message):
        return True

    def onTrigger(self, Hubbot, message):
        if message.ReplyTo in Hubbot.channels.keys():
            if "RoBoBo" not in Hubbot.channels[message.ReplyTo].Users.keys():
                if message.MessageString.lower().startswith("meow"):
                    roll = random.randint(1,20)
                    if message.User.Name == "BillTheCat":
                        return IRCResponse(ResponseType.Say, "Uhm... Hi?", message.ReplyTo)
                    if message.User.Name.startswith("Caitiri") or message.User.Name == "Caity":
                        return IRCResponse(ResponseType.Do, 'points at {}, "KITTEH!"'.format(message.User.Name), message.ReplyTo)
                    elif roll == 1:
                        reroll = random.randint(1,20)
                        if reroll == 20:
                            return IRCResponse(ResponseType.Do, 'points at {}, "CRITICAL PUPPEH!"'.format(message.User.Name), message.ReplyTo), IRCResponse(ResponseType.Say, "Wait, what?", message.ReplyTo)
                        else:
                            return IRCResponse(ResponseType.Do, 'points at {}, "NOT KITTEH."'.format(message.User.Name), message.ReplyTo)
                    elif (roll > 1) and (roll < 8):
                        return IRCResponse(ResponseType.Do, 'points at {}, "NOT KITTEH."'.format(message.User.Name), message.ReplyTo)
                    elif (roll > 7) and (roll < 14):
                        return IRCResponse(ResponseType.Do, 'points at {}, "MEHBEH KITTEH?"'.format(message.User.Name), message.ReplyTo)
                    elif (roll > 13) and (roll < 20):
                        return IRCResponse(ResponseType.Do, 'points at {}, "KITTEH!"'.format(message.User.Name), message.ReplyTo)
                    else:
                        return IRCResponse(ResponseType.Do, 'points at {}, "CRITICAL KITTEH!"'.format(message.User.Name), message.ReplyTo)
                if message.MessageString.lower().startswith("rawr"):
                    roll = random.randint(1,20)
                    if (message.User.Name == "Itazu") or (message.User.Name == "Trahsi") or (message.User.Name == "reptile"):
                        return IRCResponse(ResponseType.Say, "{} is a DRAGON!".format(message.User.Name) , message.ReplyTo)
                    elif roll == 1:
                        reroll = random.randint(1,20)
                        if reroll == 20:
                            return IRCResponse(ResponseType.Say, " is SECRETLY A DRAGON!".format(message.User.Name), message.ReplyTo)
                        else:
                            return IRCResponse(ResponseType.Say, "{} is NOT a DINOSAUR.".format(message.User.Name), message.ReplyTo)
                    elif (roll > 1) and (roll < 8):
                        return IRCResponse(ResponseType.Say, "{} is NOT a DINOSAUR.".format(message.User.Name), message.ReplyTo)
                    elif (roll > 7) and (roll < 14):
                        return IRCResponse(ResponseType.Say, "{} MIGHT be a DINOSAUR.".format(message.User.Name), message.ReplyTo)
                    elif (roll > 13) and (roll < 20):
                        return IRCResponse(ResponseType.Say, "{} is a DINOSAUR.".format(message.User.Name), message.ReplyTo)
                    else:
                        return IRCResponse(ResponseType.Say, "{} is a CRITICAL DINOSAUR!".format(message.User.Name), message.ReplyTo)
{'fraction_non_alphanumeric': 0.12477471232496881, 'fraction_numerical': 0.009981976985997504, 'mean_word_length': 2.0108514190317197, 'pattern_counts': {'":': 4, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '770425', 'n_tokens_mistral': 2140, 'n_tokens_neox': 2012, 'n_words': 452}