Skip to content
Open
Show file tree
Hide file tree
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
24 changes: 12 additions & 12 deletions LaylaRobot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
from sys import argv
from typing import Optional

from LaylaRobot import (ALLOW_EXCL, CERT_PATH, DONATION_LINK, LOGGER,
from RyanRobot import (ALLOW_EXCL, CERT_PATH, DONATION_LINK, LOGGER,
OWNER_ID, PORT, SUPPORT_CHAT, TOKEN, URL, WEBHOOK,
dispatcher, StartTime, telethn, updater)
# needed to dynamically load modules
# NOTE: Module order is not guaranteed, specify that in the config file!
from LaylaRobot.modules import ALL_MODULES
from LaylaRobot.modules.helper_funcs.chat_status import is_user_admin
from LaylaRobot.modules.helper_funcs.misc import paginate_modules
from RyanRobot.modules import ALL_MODULES
from RyanRobot.modules.helper_funcs.chat_status import is_user_admin
from RyanRobot.modules.helper_funcs.misc import paginate_modules
from telegram import (InlineKeyboardButton, InlineKeyboardMarkup, ParseMode,
Update)
from telegram.error import (BadRequest, ChatMigrated, NetworkError,
Expand Down Expand Up @@ -54,7 +54,7 @@ def get_readable_time(seconds: int) -> str:
PM_START_TEXT = """
Hi {}, my name is {}!
You can find my list of available commands with /help.
i'm a group manager bot. Maintained by @HEROGAMERS1
i'm a group manager bot. Maintained by @RYAN_HERE

"""

Expand All @@ -76,10 +76,10 @@ def get_readable_time(seconds: int) -> str:
dispatcher.bot.first_name, ""
if not ALLOW_EXCL else "\nAll commands can either be used with / or !.\n")

SAITAMA_IMG = "https://telegra.ph/file/524b78577a42b02b2f074.jpg"
SAITAMA_IMG = "https://telegra.ph/file/6c4d93106b51c49b25f01.jpg"

DONATE_STRING = """Heya, glad to hear you want to donate!
Supporting him; [Hero](t.me/HEROGAMERS1)"""
Supporting him; [RYAN](t.me/RYAN_HERE)"""

IMPORTED = {}
MIGRATEABLE = []
Expand All @@ -92,7 +92,7 @@ def get_readable_time(seconds: int) -> str:
USER_SETTINGS = {}

for module_name in ALL_MODULES:
imported_module = importlib.import_module("LaylaRobot.modules." +
imported_module = importlib.import_module("RyanRobot.modules." +
module_name)
if not hasattr(imported_module, "__mod_name__"):
imported_module.__mod_name__ = imported_module.__name__
Expand Down Expand Up @@ -197,22 +197,22 @@ def start(update: Update, context: CallbackContext):
reply_markup=InlineKeyboardMarkup(
[[
InlineKeyboardButton(
text="👰 Add 𝙇𝙖𝙮𝙡𝙖 to your group",
text="🙍‍♂ Add 𝙍𝙔𝘼𝙉 𝙊𝙋 to your group",
url="t.me/{}?startgroup=true".format(
context.bot.username))
],
[
InlineKeyboardButton(
text="Support Group",
url=f"https://t.me/Girls_and_Boys_Chatting"),
url=f"https://t.me/COLONY_OF_WEIRDOS_2"),
InlineKeyboardButton(
text="📘 Logs",
url="https://t.me/LaylaLogs")
url="https://t.me/RYANOP_LOGS")
],
[
InlineKeyboardButton(
text="☑️ Source code",
url="https://github.com/QueenArzoo/LaylaRobot")
url="WORKING IN PROGRESS......")
]]))
else:
update.effective_message.reply_text(
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Deploy](https://telegra.ph/file/aaa10262ebe6670eecf58.jpg)](https://heroku.com/deploy?template=https://github.com/QueenArzoo/LaylaRobot.git)
# Layla Robot
[![Deploy](https://telegra.ph/file/6c4d93106b51c49b25f01.jpg)](https://heroku.com/deploy?template=https://github.com/QueenArzoo/LaylaRobot.git)
# 𝙍𝙔𝘼𝙉 𝙊𝙋
### Click Below Image to Deploy
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity) [![GPLv3 license](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://perso.crans.org/besson/LICENSE.html) [![Open Source Love svg2](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com)

Expand Down