fix debian/ubuntu/apt/dpkg regex
now doesn't match words like laptop, with 'apt' inside, anymore
This commit is contained in:
parent
3aa72566c1
commit
7255dd4735
|
@ -21,7 +21,7 @@ GNU_LINUX = """I'd Just Like To Interject For A Moment. What you're referring
|
|||
class Linux(Plugin):
|
||||
KERNEL_FEED = 'https://www.kernel.org/feeds/kdist.xml'
|
||||
|
||||
@irc3.event(r'(?i)^:\S+ PRIVMSG (?P<target>\S+) :.*(debian|ubuntu|apt|dpkg).*')
|
||||
@irc3.event(r'(?i)^:\S+ PRIVMSG (?P<target>\S+) :(?:.* )?(debian|ubuntu|apt|dpkg)(?: .*|$)')
|
||||
def debillian(self, target: str):
|
||||
"""Annoying RE trigger for debian with variable count of E."""
|
||||
if random.randint(0, 3) is 0:
|
||||
|
|
Loading…
Reference in New Issue
Block a user