Update config names

This commit is contained in:
AlberLC
2022-11-26 21:29:18 +01:00
parent 7f5ba7cd09
commit 7f4ca8c7a5
2 changed files with 3 additions and 3 deletions

View File

@@ -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
)

View File

@@ -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()