Update FlanaBot._on_database_messages
This commit is contained in:
@@ -259,6 +259,10 @@ class FlanaBot(Connect4Bot, PenaltyBot, PollBot, ScraperBot, UberEatsBot, Weathe
|
|||||||
elif (number := flanautils.cast_number(word, raise_exception=False)) != word:
|
elif (number := flanautils.cast_number(word, raise_exception=False)) != word:
|
||||||
n_messages += number
|
n_messages += number
|
||||||
|
|
||||||
|
if not is_group and not is_private:
|
||||||
|
is_group = True
|
||||||
|
is_private = True
|
||||||
|
|
||||||
if (
|
if (
|
||||||
n_messages >= 0
|
n_messages >= 0
|
||||||
and
|
and
|
||||||
|
|||||||
Reference in New Issue
Block a user