Update config names
This commit is contained in:
@@ -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
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user