Move config logic to FlanaBot
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user