[im_dad, just_met_her , no_fuck_you] cogs are not getting triggered
Closed this issue · 2 comments
holysheep commented
Aforementioned cogs are not working, for example:
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
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
- I have a few of these cogs that have unprompted bot actions based on trigger words or phrases
- There’s not a supported way to have cogs share library code (or at least there wasn’t, I haven’t checked recently)
- The best way to configure many of these events at once is to then require an additional cog, the
event_config
cog to be installed as well in order to change the allowlist/denylists for events based on guilds+channels
Once you’ve installed that, use .econf
to establish permitted channels for the events to fire in!
holysheep commented
Thank you, all set!