async def _process_regular_message(self, message: discord.Message) -> None:
    channel_id = message.channel.id
    if isinstance(message.channel, discord.Thread):
        channel_id = message.channel.parent_id
    if (self.user.mentioned_in(message) or (self.user.id in [member.id for member in list(itertools.chain(*[role.members for role in message.role_mentions]))])):
        if (channel_id in self.config.guilds[message.channel.guild.id].markov_responses_whitelist):
            result = (await self.config.disable_pings_in_response(message, bc.markov.generate()))
            (await message.channel.send(((message.author.mention + ' ') + result)))
    elif (channel_id in self.config.guilds[message.channel.guild.id].markov_logging_whitelist):
        needs_to_be_added = True
        for ignored_prefix in bc.markov.ignored_prefixes.values():
            if message.content.startswith(ignored_prefix):
                needs_to_be_added = False
                break
        if needs_to_be_added:
            bc.markov.add_string(message.content)
    if (channel_id in self.config.guilds[message.channel.guild.id].responses_whitelist):
        responses_count = 0
        for response in self.config.responses.values():
            if (responses_count >= const.MAX_BOT_RESPONSES_ON_ONE_MESSAGE):
                break
            if re.search(response.regex, message.content):
                text = (await Command.process_subcommands(response.text, message, self.config.users[message.author.id]))
                (await Msg.reply(message, text, False))
                responses_count += 1
    if (channel_id in self.config.guilds[message.channel.guild.id].reactions_whitelist):
        for reaction in self.config.reactions.values():
            if re.search(reaction.regex, message.content):
                log.info(('Added reaction ' + reaction.emoji))
                try:
                    (await message.add_reaction(reaction.emoji))
                except discord.HTTPException:
                    pass
async def _process_regular_message(self, message: discord.Message) -> None:
    channel_id = message.channel.id
    if isinstance(message.channel, discord.Thread):
        channel_id = message.channel.parent_id
    if (self.user.mentioned_in(message) or (self.user.id in [member.id for member in list(itertools.chain(*[role.members for role in message.role_mentions]))])):
        if (channel_id in self.config.guilds[message.channel.guild.id].markov_responses_whitelist):
            result = (await self.config.disable_pings_in_response(message, bc.markov.generate()))
            (await message.channel.send(((message.author.mention + ' ') + result)))
    elif (channel_id in self.config.guilds[message.channel.guild.id].markov_logging_whitelist):
        needs_to_be_added = True
        for ignored_prefix in bc.markov.ignored_prefixes.values():
            if message.content.startswith(ignored_prefix):
                needs_to_be_added = False
                break
        if needs_to_be_added:
            bc.markov.add_string(message.content)
    if (channel_id in self.config.guilds[message.channel.guild.id].responses_whitelist):
        responses_count = 0
        for response in self.config.responses.values():
            if (responses_count >= const.MAX_BOT_RESPONSES_ON_ONE_MESSAGE):
                break
            if re.search(response.regex, message.content):
                text = (await Command.process_subcommands(response.text, message, self.config.users[message.author.id]))
                (await Msg.reply(message, text, False))
                responses_count += 1
    if (channel_id in self.config.guilds[message.channel.guild.id].reactions_whitelist):
        for reaction in self.config.reactions.values():
            if re.search(reaction.regex, message.content):
                log.info(('Added reaction ' + reaction.emoji))
                try:
                    (await message.add_reaction(reaction.emoji))
                except discord.HTTPException:
                    pass