Update config names
This commit is contained in:
@@ -170,7 +170,7 @@ class FlanaBot(Connect4Bot, PenaltyBot, PollBot, ScraperBot, WeatherBot, MultiBo
|
||||
and
|
||||
not self.is_bot_mentioned(message)
|
||||
and
|
||||
not message.chat.config['scraping']
|
||||
not message.chat.config['auto_scraping']
|
||||
or
|
||||
not await self._scrape_send_and_delete(message)
|
||||
)
|
||||
@@ -190,7 +190,7 @@ class FlanaBot(Connect4Bot, PenaltyBot, PollBot, ScraperBot, WeatherBot, MultiBo
|
||||
self.is_bot_mentioned(message)
|
||||
or
|
||||
(
|
||||
message.chat.config['insult']
|
||||
message.chat.config['auto_insult']
|
||||
and
|
||||
random.random() < constants.INSULT_PROBABILITY
|
||||
)
|
||||
|
||||
@@ -106,7 +106,7 @@ class ScraperBot(MultiBot, ABC):
|
||||
and
|
||||
message.chat.is_group
|
||||
and
|
||||
message.chat.config['delete_original']
|
||||
message.chat.config['scraping_delete_original']
|
||||
):
|
||||
# noinspection PyTypeChecker
|
||||
BotAction(Action.MESSAGE_DELETED, message, affected_objects=[message, *sended_media_messages]).save()
|
||||
|
||||
Reference in New Issue
Block a user