From 8807ed0d13528ed2dabc0dfe0044f2c219d4893a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 22 May 2022 10:58:42 +0200 Subject: [PATCH] fds --- files/routes/chat.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/routes/chat.py b/files/routes/chat.py index c74fbc904..7b6bc9eb6 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -62,6 +62,11 @@ def speak(data, v): if v.shadowbanned: emit('speak', data) + elif blackjack and any(i in text.lower() for i in blackjack.split()): + emit('speak', data) + v.shadowbanned = 'AutoJanny' + g.db.add(v) + g.db.commit() else: emit('speak', data, broadcast=True) messages.append(data)