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) diff --git a/files/routes/posts.py b/files/routes/posts.py index c8fd8d0a0..c10ebd68d 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1367,7 +1367,7 @@ def submit_post(v, sub=None): if body.startswith('!slots'): check_for_slots_command(body, snappy, c) - if body.startswith(':#marseypin'): + if body.startswith(':#marseypin:') or body.startswith(':#marseypin2:'): post.stickied = "Snappy" post.stickied_utc = int(time.time()) + 3600