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 and
not self.is_bot_mentioned(message) not self.is_bot_mentioned(message)
and and
not message.chat.config['scraping'] not message.chat.config['auto_scraping']
or or
not await self._scrape_send_and_delete(message) 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) self.is_bot_mentioned(message)
or or
( (
message.chat.config['insult'] message.chat.config['auto_insult']
and and
random.random() < constants.INSULT_PROBABILITY random.random() < constants.INSULT_PROBABILITY
) )

View File

@@ -106,7 +106,7 @@ class ScraperBot(MultiBot, ABC):
and and
message.chat.is_group message.chat.is_group
and and
message.chat.config['delete_original'] message.chat.config['scraping_delete_original']
): ):
# noinspection PyTypeChecker # noinspection PyTypeChecker
BotAction(Action.MESSAGE_DELETED, message, affected_objects=[message, *sended_media_messages]).save() BotAction(Action.MESSAGE_DELETED, message, affected_objects=[message, *sended_media_messages]).save()