TheDataLeek / Eris-Cogs

Cogs for Red Discord Bot
Other
9 stars 13 forks source link

[im_dad, just_met_her , no_fuck_you] cogs are not getting triggered #63

Closed holysheep closed 5 months ago

holysheep commented 6 months ago

Aforementioned cogs are not working, for example:

Screenshot 2024-03-22 at 16 09 40

Regex seems to be correct:

import re

class RegexChecker:
    def __init__(self):
        self.pattern = re.compile(r"\bf[uck]{,3} \b", flags=re.IGNORECASE)

    def check_string(self, input_string):
        if self.pattern.search(input_string):
            return True
        else:
            return False

checker = RegexChecker()
print(checker.check_string("Well, fuck you!")) # output is True

Bot have majority of permissions. Do I miss something?

TheDataLeek commented 6 months ago

Yes - you also need to install the event_config cog in order to allow the events to fire. My apologies for the convoluted install - here’s some motivation behind it

Once you’ve installed that, use .econf to establish permitted channels for the events to fire in!

holysheep commented 5 months ago

Thank you, all set!