Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 12 additions & 13 deletions AmeliaRobot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_readable_time(seconds: int) -> str:

PM_START_TEXT = """
ʜᴇʟʟᴏ [🤗](https://telegra.ph/file/329647a798cccb101aecf.jpg), ɪᴍ Amelia ᴀ ʜɪɢʜʏ ᴀᴅᴠᴀɴᴄᴇᴅ ʙᴏᴛ ᴡɪᴛʜ ʟᴏᴛꜱ ᴏꜰ ᴀᴍᴀᴢɪɴɢ ᴛᴏᴏʟꜱ.
`ɪ'ᴍ ʜᴇʀᴇ ᴛᴏ ʜᴇʟᴘ ʏᴏᴜ ᴍᴀɴᴀɢᴇ ʏᴏᴜʀ ɢʀᴏᴜᴘꜱ! ʜɪᴛ` /help
ɪ'ᴍ ʜᴇʀᴇ ᴛᴏ ʜᴇʟᴘ ʏᴏᴜ ᴍᴀɴᴀɢᴇ ʏᴏᴜʀ ɢʀᴏᴜᴘꜱ! ʜɪᴛ /help
"""

buttons = [
Expand All @@ -96,8 +96,8 @@ def get_readable_time(seconds: int) -> str:


HELP_STRINGS = """
`ʜɪ.. ɪ'ᴍ` Amelia [🙋‍♀️](https://telegra.ph/file/329647a798cccb101aecf.jpg)
`ᴄʟɪᴄᴋ ᴏɴ ᴛʜᴇ ʙᴜᴛᴛᴏɴꜱ ʙᴇʟᴏᴡ ᴛᴏ ɢᴇᴛ ᴅᴏᴄᴜᴍᴇɴᴛᴀᴛɪᴏɴ ᴀʙᴏᴜᴛ ꜱᴘᴇᴄɪꜰɪᴄ ᴍᴏᴅᴜʟᴇꜱ..`"""
ʜɪ.. ɪ'ᴍ Amelia [🙋‍♀️](https://telegra.ph/file/329647a798cccb101aecf.jpg)
ᴄʟɪᴄᴋ ᴏɴ ᴛʜᴇ ʙᴜᴛᴛᴏɴꜱ ʙᴇʟᴏᴡ ᴛᴏ ɢᴇᴛ ᴅᴏᴄᴜᴍᴇɴᴛᴀᴛɪᴏɴ ᴀʙᴏᴜᴛ ꜱᴘᴇᴄɪꜰɪᴄ ᴍᴏᴅᴜʟᴇꜱ.."""

amelia_IMG = "https://telegra.ph/file/329647a798cccb101aecf.jpg"

Expand All @@ -106,6 +106,7 @@ def get_readable_time(seconds: int) -> str:
Supporting isnt always financial! \
Those who cannot provide monetary support are welcome to help us develop the bot at ."""


IMPORTED = {}
MIGRATEABLE = []
HELPABLE = {}
Expand All @@ -123,9 +124,7 @@ def get_readable_time(seconds: int) -> str:

if imported_module.__mod_name__.lower() not in IMPORTED:
IMPORTED[imported_module.__mod_name__.lower()] = imported_module
else:
raise Exception("Can't have two modules with the same name! Please change one")


if hasattr(imported_module, "__help__") and imported_module.__help__:
HELPABLE[imported_module.__mod_name__.lower()] = imported_module

Expand Down Expand Up @@ -349,16 +348,16 @@ def amelia_about_callback(update, context):
query = update.callback_query
if query.data == "amelia_":
query.message.edit_text(
text=""" ℹ️ I'm *amelia*, a powerful group management bot built to help you manage your group easily.
text=""" ℹ️ I'm *Amelia*, a powerful group management bot built to help you manage your group easily.
\n❍ I can restrict users.
\n❍ I can greet users with customizable welcome messages and even set a group's rules.
\n❍ I have an advanced anti-flood system.
\n❍ I can warn users until they reach max warns, with each predefined actions such as ban, mute, kick, etc.
\n❍ I have a note keeping system, blacklists, and even predetermined replies on certain keywords.
\n❍ I check for admins' permissions before executing any command and more stuffs
\n\n_bot licensed under the GNU General Public License v3.0_
\nHere is the [💾Repository](https://github.com/war-legend/AmeliaRobot).
\n\nIf you have any question about amelia, let us know at @warbotzchat .""",
\n\n_shasa's licensed under the GNU General Public License v3.0_
\nHere is the [💾Repository](https://github.com/War-Legend/AmeliaRobot).
\n\nIf you have any question about *Amelia*, let us know at .""",
parse_mode=ParseMode.MARKDOWN,
disable_web_page_preview=True,
reply_markup=InlineKeyboardMarkup(
Expand All @@ -384,8 +383,8 @@ def Source_about_callback(update, context):
query = update.callback_query
if query.data == "source_":
query.message.edit_text(
text=""" Hi..🤗 I'm *amelia*
\nHere is the [Source Code](https://github.com/war-legend) .""",
text=""" Hi..👸 I'm *Amelia*
\nHere is the [Source Code](https://github.com/HuntingBots/AsunaRobot) .""",
parse_mode=ParseMode.MARKDOWN,
disable_web_page_preview=True,
reply_markup=InlineKeyboardMarkup(
Expand Down Expand Up @@ -680,7 +679,7 @@ def main():

if SUPPORT_CHAT is not None and isinstance(SUPPORT_CHAT, str):
try:
dispatcher.bot.sendMessage(f"@{SUPPORT_CHAT}", "Yes I'm alive 💃")
dispatcher.bot.sendMessage(f"@{SUPPORT_CHAT}", "Yes I'm online now!")
except Unauthorized:
LOGGER.warning(
"Bot isnt able to send message to support_chat, go and check!"
Expand Down