Move config logic to FlanaBot

This commit is contained in:
AlberLC
2022-11-26 01:39:37 +01:00
parent 04eb2ff491
commit e883909769

View File

@@ -64,6 +64,14 @@ class FlanaBot(Connect4Bot, PenaltyBot, PollBot, ScraperBot, WeatherBot, MultiBo
async def _changeable_roles(self, group_: int | str | Chat | Message) -> list[Role]:
pass
@return_if_first_empty(exclude_self_types='FlanaBot', globals_=globals())
async def _get_message(
self,
event: multibot_constants.MESSAGE_EVENT,
pull_overwrite_fields: Iterable[str] = ('_id', 'config')
) -> Message:
return await super()._get_message(event, pull_overwrite_fields)
@return_if_first_empty(exclude_self_types='FlanaBot', globals_=globals())
async def _manage_exceptions(self, exceptions: BaseException | Iterable[BaseException], context: Chat | Message):
if not isinstance(exceptions, Iterable):