Improve legibility

This commit is contained in:
AlberLC
2022-12-12 06:31:55 +01:00
parent 77a44a0f9c
commit 3b6d62b9e1
8 changed files with 24 additions and 24 deletions

View File

@@ -19,9 +19,9 @@ from flanabot.models import ButtonsGroup, Message, Player
# --------------------------------------------- CONNECT_4_BOT --------------------------------------------- # # --------------------------------------------- CONNECT_4_BOT --------------------------------------------- #
# ----------------------------------------------------------------------------------------------------- # # ----------------------------------------------------------------------------------------------------- #
class Connect4Bot(MultiBot, ABC): class Connect4Bot(MultiBot, ABC):
# ----------------------------------------------------------- # # -------------------------------------------------------- #
# -------------------- PROTECTED METHODS -------------------- # # ------------------- PROTECTED METHODS ------------------ #
# ----------------------------------------------------------- # # -------------------------------------------------------- #
def _add_handlers(self): def _add_handlers(self):
super()._add_handlers() super()._add_handlers()

View File

@@ -28,9 +28,9 @@ class FlanaBot(Connect4Bot, PenaltyBot, PollBot, ScraperBot, WeatherBot, MultiBo
Chat = Chat Chat = Chat
Message = Message Message = Message
# ----------------------------------------------------------- # # -------------------------------------------------------- #
# -------------------- PROTECTED METHODS -------------------- # # ------------------- PROTECTED METHODS ------------------ #
# ----------------------------------------------------------- # # -------------------------------------------------------- #
def _add_handlers(self): def _add_handlers(self):
super()._add_handlers() super()._add_handlers()

View File

@@ -26,9 +26,9 @@ class FlanaDiscBot(DiscordBot, FlanaBot):
self.heating = False self.heating = False
self.heat_level = 0.0 self.heat_level = 0.0
# ----------------------------------------------------------- # # -------------------------------------------------------- #
# -------------------- PROTECTED METHODS -------------------- # # ------------------- PROTECTED METHODS ------------------ #
# ----------------------------------------------------------- # # -------------------------------------------------------- #
def _add_handlers(self): def _add_handlers(self):
super()._add_handlers() super()._add_handlers()
self.client.add_listener(self._on_member_join, 'on_member_join') self.client.add_listener(self._on_member_join, 'on_member_join')

View File

@@ -42,9 +42,9 @@ class FlanaTeleBot(TelegramBot, FlanaBot):
) )
self.whitelist_ids = [] self.whitelist_ids = []
# ----------------------------------------------------------- # # -------------------------------------------------------- #
# -------------------- PROTECTED METHODS -------------------- # # ------------------- PROTECTED METHODS ------------------ #
# ----------------------------------------------------------- # # -------------------------------------------------------- #
@user_client @user_client
async def _get_contacts_ids(self) -> list[int]: async def _get_contacts_ids(self) -> list[int]:
async with self.user_client: async with self.user_client:

View File

@@ -20,9 +20,9 @@ class PenaltyBot(MultiBot, ABC):
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
self.lock = asyncio.Lock() self.lock = asyncio.Lock()
# ----------------------------------------------------------- # # -------------------------------------------------------- #
# -------------------- PROTECTED METHODS -------------------- # # ------------------- PROTECTED METHODS ------------------ #
# ----------------------------------------------------------- # # -------------------------------------------------------- #
def _add_handlers(self): def _add_handlers(self):
super()._add_handlers() super()._add_handlers()

View File

@@ -18,9 +18,9 @@ from flanabot.models import ButtonsGroup, Message
# --------------------------------------------- POLL_BOT --------------------------------------------- # # --------------------------------------------- POLL_BOT --------------------------------------------- #
# ---------------------------------------------------------------------------------------------------- # # ---------------------------------------------------------------------------------------------------- #
class PollBot(MultiBot, ABC): class PollBot(MultiBot, ABC):
# ----------------------------------------------------------- # # -------------------------------------------------------- #
# -------------------- PROTECTED METHODS -------------------- # # ------------------- PROTECTED METHODS ------------------ #
# ----------------------------------------------------------- # # -------------------------------------------------------- #
def _add_handlers(self): def _add_handlers(self):
super()._add_handlers() super()._add_handlers()

View File

@@ -18,9 +18,9 @@ from flanabot.models import Action, BotAction, Message
# --------------------------------------------- SCRAPER_BOT --------------------------------------------- # # --------------------------------------------- SCRAPER_BOT --------------------------------------------- #
# ------------------------------------------------------------------------------------------------------- # # ------------------------------------------------------------------------------------------------------- #
class ScraperBot(MultiBot, ABC): class ScraperBot(MultiBot, ABC):
# ----------------------------------------------------------- # # -------------------------------------------------------- #
# -------------------- PROTECTED METHODS -------------------- # # ------------------- PROTECTED METHODS ------------------ #
# ----------------------------------------------------------- # # -------------------------------------------------------- #
def _add_handlers(self): def _add_handlers(self):
super()._add_handlers() super()._add_handlers()

View File

@@ -20,9 +20,9 @@ from flanabot.models import Action, BotAction, ButtonsGroup, Message, WeatherCha
# --------------------------------------------- WEATHER_BOT --------------------------------------------- # # --------------------------------------------- WEATHER_BOT --------------------------------------------- #
# ------------------------------------------------------------------------------------------------------- # # ------------------------------------------------------------------------------------------------------- #
class WeatherBot(MultiBot, ABC): class WeatherBot(MultiBot, ABC):
# ----------------------------------------------------------- # # -------------------------------------------------------- #
# -------------------- PROTECTED METHODS -------------------- # # ------------------- PROTECTED METHODS ------------------ #
# ----------------------------------------------------------- # # -------------------------------------------------------- #
def _add_handlers(self): def _add_handlers(self):
super()._add_handlers() super()._add_handlers()