This commit is contained in:
Aevann1 2022-02-03 08:39:02 +02:00
parent f0580c3a9e
commit c2beea12ef
32 changed files with 294 additions and 274 deletions

View file

@ -62,6 +62,7 @@ class Blackjack:
self.db = g.db
def check_for_blackjack_command(self, in_text, from_user, from_comment):
in_text = in_text.lower()
if self.command_word in in_text:
for word in in_text.split():
if self.command_word in word:

View file

@ -417,7 +417,7 @@ class Comment(Base):
if self.is_banned: return True
if path.startswith('/post') and (self.slots_result or self.blackjack_result) and len(self.body) <= 20 and self.level > 1: return True
if path.startswith('/post') and (self.slots_result or self.blackjack_result) and (not self.body or len(self.body) <= 20) and self.level > 1: return True
if v and v.filter_words and self.body and any(x in self.body for x in v.filter_words): return True

View file

@ -23,6 +23,7 @@ class Slots:
self.db = g.db
def check_for_slots_command(self, in_text, from_user, from_comment):
in_text = in_text.lower()
if self.command_word in in_text:
for word in in_text.split():
if self.command_word in word: