Add minor changes
This commit is contained in:
@@ -16,7 +16,7 @@ from flanabot.models import ButtonsGroup, Message, Player
|
|||||||
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------------------------------- #
|
# ----------------------------------------------------------------------------------------------------- #
|
||||||
# --------------------------------------------- CONNECT_4_BOT --------------------------------------------- #
|
# ------------------------------------------- CONNECT_4_BOT ------------------------------------------- #
|
||||||
# ----------------------------------------------------------------------------------------------------- #
|
# ----------------------------------------------------------------------------------------------------- #
|
||||||
class Connect4Bot(MultiBot, ABC):
|
class Connect4Bot(MultiBot, ABC):
|
||||||
# -------------------------------------------------------- #
|
# -------------------------------------------------------- #
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ from flanabot import constants
|
|||||||
from flanabot.models import Chat, Message, Punishment
|
from flanabot.models import Chat, Message, Punishment
|
||||||
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------------------------------- #
|
# ----------------------------------------------------------------------------------------------------- #
|
||||||
# --------------------------------------------- PENALTY_BOT --------------------------------------------- #
|
# -------------------------------------------- PENALTY_BOT -------------------------------------------- #
|
||||||
# ------------------------------------------------------------------------------------------------------- #
|
# ----------------------------------------------------------------------------------------------------- #
|
||||||
class PenaltyBot(MultiBot, ABC):
|
class PenaltyBot(MultiBot, ABC):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
@@ -114,7 +114,7 @@ class PenaltyBot(MultiBot, ABC):
|
|||||||
await self.delete_message(await self.get_message(message.id, message.chat.id))
|
await self.delete_message(await self.get_message(message.id, message.chat.id))
|
||||||
|
|
||||||
groups_data = {chat.group_id: chat.group_name for chat in chats}
|
groups_data = {chat.group_id: chat.group_name for chat in chats}
|
||||||
owner_message_parts = [
|
owner_message_parts = (
|
||||||
'<b>Spammer castigado:</b>',
|
'<b>Spammer castigado:</b>',
|
||||||
'<b>User:</b>',
|
'<b>User:</b>',
|
||||||
f' <b>id:</b> <code>{message.author.id}</code>',
|
f' <b>id:</b> <code>{message.author.id}</code>',
|
||||||
@@ -130,7 +130,7 @@ class PenaltyBot(MultiBot, ABC):
|
|||||||
f' <b>group_name:</b> <code>{group_name}</code>'
|
f' <b>group_name:</b> <code>{group_name}</code>'
|
||||||
for group_id, group_name in groups_data.items()
|
for group_id, group_name in groups_data.items()
|
||||||
)
|
)
|
||||||
]
|
)
|
||||||
await self.send('\n'.join(owner_message_parts), await self.owner_chat)
|
await self.send('\n'.join(owner_message_parts), await self.owner_chat)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ from flanabot import constants
|
|||||||
from flanabot.models import Action, BotAction, Message
|
from flanabot.models import Action, BotAction, Message
|
||||||
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------------------------------- #
|
# ----------------------------------------------------------------------------------------------------- #
|
||||||
# --------------------------------------------- SCRAPER_BOT --------------------------------------------- #
|
# -------------------------------------------- SCRAPER_BOT -------------------------------------------- #
|
||||||
# ------------------------------------------------------------------------------------------------------- #
|
# ----------------------------------------------------------------------------------------------------- #
|
||||||
class ScraperBot(MultiBot, ABC):
|
class ScraperBot(MultiBot, ABC):
|
||||||
# -------------------------------------------------------- #
|
# -------------------------------------------------------- #
|
||||||
# ------------------- PROTECTED METHODS ------------------ #
|
# ------------------- PROTECTED METHODS ------------------ #
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ from flanabot.models import Message, SteamRegion
|
|||||||
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------------------------------- #
|
# ----------------------------------------------------------------------------------------------------- #
|
||||||
# --------------------------------------------- constants.STEAM_BOT --------------------------------------------- #
|
# --------------------------------------------- STEAM_BOT --------------------------------------------- #
|
||||||
# ----------------------------------------------------------------------------------------------------- #
|
# ----------------------------------------------------------------------------------------------------- #
|
||||||
class SteamBot(MultiBot, ABC):
|
class SteamBot(MultiBot, ABC):
|
||||||
# -------------------------------------------------------- #
|
# -------------------------------------------------------- #
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ from flanabot import constants
|
|||||||
from flanabot.models import Action, BotAction, ButtonsGroup, Message, WeatherChart
|
from flanabot.models import Action, BotAction, ButtonsGroup, Message, WeatherChart
|
||||||
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------------------------------- #
|
# ----------------------------------------------------------------------------------------------------- #
|
||||||
# --------------------------------------------- WEATHER_BOT --------------------------------------------- #
|
# -------------------------------------------- WEATHER_BOT -------------------------------------------- #
|
||||||
# ------------------------------------------------------------------------------------------------------- #
|
# ----------------------------------------------------------------------------------------------------- #
|
||||||
class WeatherBot(MultiBot, ABC):
|
class WeatherBot(MultiBot, ABC):
|
||||||
# -------------------------------------------------------- #
|
# -------------------------------------------------------- #
|
||||||
# ------------------- PROTECTED METHODS ------------------ #
|
# ------------------- PROTECTED METHODS ------------------ #
|
||||||
|
|||||||
Reference in New Issue
Block a user