Compare commits

...

2 Commits

Author SHA1 Message Date
cb1cc4439a chore: update feedparser
The old feedparser 5.x versions are incompatible with recent setuptools
versions and can't be installed anymore
2022-11-07 20:24:26 +00:00
ffa64f509c linux: fix two SyntaxWarnings 2022-11-07 20:20:11 +00:00
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) is 0: if random.randint(0, 3) == 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) is 0: if random.randint(0, 12) == 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~=5.2 feedparser~=6.0
python-dotenv~=0.17.1 python-dotenv~=0.17.1
lxml~=4.6 lxml~=4.6