From ffa64f509c7aecd6da1b22bc0032df11e54ea002 Mon Sep 17 00:00:00 2001 From: jkhsjdhjs Date: Mon, 7 Nov 2022 20:20:11 +0000 Subject: [PATCH] linux: fix two SyntaxWarnings --- bot/linux.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/linux.py b/bot/linux.py index 319bd40..28b8a63 100644 --- a/bot/linux.py +++ b/bot/linux.py @@ -24,13 +24,13 @@ class Linux(Plugin): @irc3.event(r'(?i)^:\S+ PRIVMSG (?P\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\S+) :.*(?