linux: fix two SyntaxWarnings

This commit is contained in:
jkhsjdhjs 2022-11-07 20:20:11 +00:00
parent 9ba11a50cd
commit ffa64f509c

View File

@ -24,13 +24,13 @@ class Linux(Plugin):
@irc3.event(r'(?i)^:\S+ PRIVMSG (?P<target>\S+) :(?:.* )?(debian|ubuntu|apt|dpkg|flash)(?: .*|$)')
def debillian(self, target: str):
"""Annoying RE trigger for debian with variable count of E."""
if random.randint(0, 3) is 0:
if random.randint(0, 3) == 0:
self.bot.privmsg(target, re_generator())
@irc3.event(r'(?i)^:\S+ PRIVMSG (?P<target>\S+) :.*(?<!gnu[/+])linux(?! kernel).*')
def linux(self, target: str):
"""Super annoying, useless 'Stallman is mad' trigger."""
if random.randint(0, 12) is 0:
if random.randint(0, 12) == 0:
self.bot.privmsg(target, GNU_LINUX)
@command