Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
subinps committed Jan 8, 2022
1 parent a26271f commit 22258ef
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Script.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class script(object):
these are the extra features of Eva Maria
<b>Commands and Usage:</b>
• /id - <code>get id of a specifed user.</code>
• /id - <code>get id of a specified user.</code>
• /info - <code>get information about a user.</code>
• /imdb - <code>get the film information from IMDb source.</code>
• /search - <code>get the film information from various sources.</code>"""
Expand Down
6 changes: 3 additions & 3 deletions database/connections_mdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async def add_connection(group_id, user_id):
mycol.insert_one(data)
return True
except:
logger.exception('Some error occured!', exc_info=True)
logger.exception('Some error occurred!', exc_info=True)

else:
try:
Expand All @@ -49,7 +49,7 @@ async def add_connection(group_id, user_id):
)
return True
except:
logger.exception('Some error occured!', exc_info=True)
logger.exception('Some error occurred!', exc_info=True)


async def active_connection(user_id):
Expand Down Expand Up @@ -131,6 +131,6 @@ async def delete_connection(user_id, group_id):
)
return True
except Exception as e:
logger.exception(f'Some error occured! {e}', exc_info=True)
logger.exception(f'Some error occurred! {e}', exc_info=True)
return False

4 changes: 2 additions & 2 deletions info.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ def is_enabled(value, default):
LOG_STR = "Current Cusomized Configurations are:-\n"
LOG_STR += ("IMDB Results are enabled, Bot will be showing imdb details for you queries.\n" if IMDB else "IMBD Results are disabled.\n")
LOG_STR += ("P_TTI_SHOW_OFF found , Users will be redirected to send /start to Bot PM instead of sending file file directly\n" if P_TTI_SHOW_OFF else "P_TTI_SHOW_OFF is disabled files will be send in PM, instead of sending start.\n")
LOG_STR += ("SINGLE_BUTTON is Found, filename and files size will be shown in a single button instead of two seperate buttons\n" if SINGLE_BUTTON else "SINGLE_BUTTON is disabled , filename and file_sixe will be shown as diffrent buttons\n")
LOG_STR += ("SINGLE_BUTTON is Found, filename and files size will be shown in a single button instead of two separate buttons\n" if SINGLE_BUTTON else "SINGLE_BUTTON is disabled , filename and file_sixe will be shown as different buttons\n")
LOG_STR += (f"CUSTOM_FILE_CAPTION enabled with value {CUSTOM_FILE_CAPTION}, your files will be send along with this customized caption.\n" if CUSTOM_FILE_CAPTION else "No CUSTOM_FILE_CAPTION Found, Default captions of file will be used.\n")
LOG_STR += ("Long IMDB storyline enabled." if LONG_IMDB_DESCRIPTION else "LONG_IMDB_DESCRIPTION is disabled , Plot will be shorter.\n")
LOG_STR += ("Spell Check Mode Is Enabled, bot will be suggesting related movies if movie not found\n" if SPELL_CHECK_REPLY else "SPELL_CHECK_REPLY Mode disabled\n")
LOG_STR += (f"MAX_LIST_ELM Found, long list will be shortened to first {MAX_LIST_ELM} elements\n" if MAX_LIST_ELM else "Full List of casts and crew will be shown in imdb template, restrict them by adding a value to MAX_LIST_ELM\n")
LOG_STR += f"Your Currect IMDB template is {IMDB_TEMPLATE}"
LOG_STR += f"Your current IMDB template is {IMDB_TEMPLATE}"
4 changes: 2 additions & 2 deletions plugins/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async def addconnection(client,message):
addcon = await add_connection(str(group_id), str(userid))
if addcon:
await message.reply_text(
f"Sucessfully connected to **{title}**\nNow manage your group from my pm !",
f"Successfully connected to **{title}**\nNow manage your group from my pm !",
quote=True,
parse_mode="md"
)
Expand All @@ -72,7 +72,7 @@ async def addconnection(client,message):
await message.reply_text("Add me as an admin in group", quote=True)
except Exception as e:
logger.exception(e)
await message.reply_text('Some error occured! Try again later.', quote=True)
await message.reply_text('Some error occurred! Try again later.', quote=True)
return


Expand Down
2 changes: 1 addition & 1 deletion plugins/genlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
async def gen_link_s(bot, message):
replied = message.reply_to_message
if not replied:
return await message.reply('Reply to a message to get a sharable link.')
return await message.reply('Reply to a message to get a shareable link.')
file_type = replied.media
if file_type not in ["video", 'audio', 'document']:
return await message.reply("Reply to a supported media")
Expand Down
8 changes: 4 additions & 4 deletions plugins/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ async def set_skip_number(bot, message):
skip = int(skip)
except:
return await message.reply("Skip number should be an integer.")
await message.reply(f"Succesfully set SKIP number as {skip}")
await message.reply(f"Successfully set SKIP number as {skip}")
temp.CURRENT = int(skip)
else:
await message.reply("Give me a skip number")
Expand All @@ -147,7 +147,7 @@ async def index_files_to_db(lst_msg_id, chat, msg, bot):
temp.CANCEL = False
while current < total:
if temp.CANCEL:
await msg.edit("Succesfully Cancelled")
await msg.edit("Successfully Cancelled")
break
try:
message = await bot.get_messages(chat_id=chat, message_ids=current, replies=0)
Expand Down Expand Up @@ -190,10 +190,10 @@ async def index_files_to_db(lst_msg_id, chat, msg, bot):
can = [[InlineKeyboardButton('Cancel', callback_data='index_cancel')]]
reply = InlineKeyboardMarkup(can)
await msg.edit_text(
text=f"Total messages fetched: <code>{current}</code>\nTotal messages saved: <code>{total_files}</code>\nDuplicate Files Skipped: <code>{duplicate}</code>\nDeleted Messages Skipped: <code>{deleted}</code>\nNon-Media messages skipped: <code>{no_media}</code>\nErrors Occured: <code>{errors}</code>",
text=f"Total messages fetched: <code>{current}</code>\nTotal messages saved: <code>{total_files}</code>\nDuplicate Files Skipped: <code>{duplicate}</code>\nDeleted Messages Skipped: <code>{deleted}</code>\nNon-Media messages skipped: <code>{no_media}</code>\nErrors Occurred: <code>{errors}</code>",
reply_markup=reply)
except Exception as e:
logger.exception(e)
await msg.edit(f'Error: {e}')
else:
await msg.edit(f'Succesfully saved <code>{total_files}</code> to dataBase!\nDuplicate Files Skipped: <code>{duplicate}</code>\nDeleted Messages Skipped: <code>{deleted}</code>\nNon-Media messages skipped: <code>{no_media}</code>\nErrors Occured: <code>{errors}</code>')
await msg.edit(f'Succesfully saved <code>{total_files}</code> to dataBase!\nDuplicate Files Skipped: <code>{duplicate}</code>\nDeleted Messages Skipped: <code>{deleted}</code>\nNon-Media messages skipped: <code>{no_media}</code>\nErrors Occurred: <code>{errors}</code>')
2 changes: 1 addition & 1 deletion plugins/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async def who_is(client, message):
message_out_str += f"<b>➲Last Name:</b> {last_name}\n"
message_out_str += f"<b>➲Telegram ID:</b> <code>{from_user.id}</code>\n"
username = from_user.username or "<b>None</b>"
dc_id = from_user.dc_id or "[User Doesnt Have A Valid DP]"
dc_id = from_user.dc_id or "[User Doesn't Have A Valid DP]"
message_out_str += f"<b>➲Data Centre:</b> <code>{dc_id}</code>\n"
message_out_str += f"<b>➲User Name:</b> @{username}\n"
message_out_str += f"<b>➲User 𝖫𝗂𝗇𝗄:</b> <a href='tg://user?id={from_user.id}'><b>Click Here</b></a>\n"
Expand Down
8 changes: 4 additions & 4 deletions plugins/p_ttishow.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async def disable_chat(bot, message):
return await message.reply(f"This chat is already disabled:\nReason-<code> {cha_t['reason']} </code>")
await db.disable_chat(int(chat_), reason)
temp.BANNED_CHATS.append(int(chat_))
await message.reply('Chat Succesfully Disabled')
await message.reply('Chat Successfully Disabled')
try:
buttons = [[
InlineKeyboardButton('Support', url=f'https://t.me/{SUPPORT_CHAT}')
Expand Down Expand Up @@ -132,7 +132,7 @@ async def re_enable_chat(bot, message):
return await message.reply('This chat is not yet disabled.')
await db.re_enable_chat(int(chat_))
temp.BANNED_CHATS.remove(int(chat_))
await message.reply("Chat Succesfully re-enabled")
await message.reply("Chat Successfully re-enabled")


@Client.on_message(filters.command('stats') & filters.incoming)
Expand Down Expand Up @@ -197,7 +197,7 @@ async def ban_a_user(bot, message):
return await message.reply(f"{k.mention} is already banned\nReason: {jar['ban_reason']}")
await db.ban_user(k.id, reason)
temp.BANNED_USERS.append(k.id)
await message.reply(f"Succesfully banned {k.mention}")
await message.reply(f"Successfully banned {k.mention}")



Expand Down Expand Up @@ -230,7 +230,7 @@ async def unban_a_user(bot, message):
return await message.reply(f"{k.mention} is not yet banned.")
await db.remove_ban(k.id)
temp.BANNED_USERS.remove(k.id)
await message.reply(f"Succesfully unbanned {k.mention}")
await message.reply(f"Successfully unbanned {k.mention}")



Expand Down
8 changes: 4 additions & 4 deletions plugins/pm_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ async def cb_handler(client: Client, query: CallbackQuery):
except:
pass
else:
await query.answer("Thats not for you!!",show_alert=True)
await query.answer("That's not for you!!",show_alert=True)


elif "groupcb" in query.data:
Expand Down Expand Up @@ -240,7 +240,7 @@ async def cb_handler(client: Client, query: CallbackQuery):
parse_mode="md"
)
else:
await query.message.edit_text('Some error occured!!', parse_mode="md")
await query.message.edit_text('Some error occurred!!', parse_mode="md")
return

elif "disconnect" in query.data:
Expand All @@ -262,7 +262,7 @@ async def cb_handler(client: Client, query: CallbackQuery):
)
else:
await query.message.edit_text(
f"Some error occured!!",
f"Some error occurred!!",
parse_mode="md"
)
return
Expand All @@ -280,7 +280,7 @@ async def cb_handler(client: Client, query: CallbackQuery):
)
else:
await query.message.edit_text(
f"Some error occured!!",
f"Some error occurred!!",
parse_mode="md"
)
return
Expand Down
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async def get_poster(query, bulk=False, id=False, file=None):
async def broadcast_messages(user_id, message):
try:
await message.copy(chat_id=user_id)
return True, "Succes"
return True, "Success"
except FloodWait as e:
await asyncio.sleep(e.x)
return await broadcast_messages(user_id, message)
Expand Down

0 comments on commit 22258ef

Please sign in to comment.