Compare commits

..

No commits in common. "cb1cc4439a0d2f4cb327e4b92f12c62b210ae2f5" and "9ba11a50cdd525175f3025bf92370dc573b4a2f6" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -6,6 +6,6 @@ aiocron~=1.3
psycopg2~=2.8 psycopg2~=2.8
requests~=2.22 requests~=2.22
GitPython~=3.0 GitPython~=3.0
feedparser~=6.0 feedparser~=5.2
python-dotenv~=0.17.1 python-dotenv~=0.17.1
lxml~=4.6 lxml~=4.6