This commit is contained in:
yasirarism 2023-07-05 12:50:38 +07:00 committed by GitHub
parent f5a32ab2da
commit bffcf61685
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 11 additions and 7 deletions

View file

@ -1,3 +1,4 @@
# skipcq
from .errors import *
from .misc import *
from .permissions import *

View file

@ -1 +1,2 @@
# skipcq
from .message import Message

View file

@ -1,2 +1,3 @@
# skipcq
from .command import command
from .callback import callback

View file

@ -1 +1,2 @@
# skipcq
from .listen import Chat, Client, MessageHandler, User

View file

@ -1,3 +1,4 @@
# skipcq
from .edit_message_text import edit_message_text
from .send_as_file import send_as_file
from .send_message import send_message

View file

@ -1,3 +1,4 @@
# skipcq
from .utils import PyromodConfig, patch, patchable
from .handler_error import handle_error
from .admin_utils import check_rights, is_admin

View file

@ -3,8 +3,6 @@
# * @projectName MissKatyPyro
# * Copyright ©YasirPedia All rights reserved
import logging
from pyrogram import Client, filters
from pyrogram.types import Message
from misskaty import app

View file

@ -10,7 +10,7 @@ from urllib.parse import quote_plus
from bs4 import BeautifulSoup
from deep_translator import GoogleTranslator
from pykeyboard import InlineButton, InlineKeyboard
from pyrogram import Client, enums, filters
from pyrogram import Client, enums
from pyrogram.errors import (
MediaCaptionTooLong,
MediaEmpty,
@ -44,7 +44,7 @@ headers = {
# IMDB Choose Language
@app.on_cmd("imdb")
@ratelimiter
async def imdb_choose(self: Client, ctx: Message):
async def imdb_choose(_, ctx: Message):
if len(ctx.command) == 1:
return await ctx.reply_msg(
f" Please add query after CMD!\nEx: <code>/{ctx.command[0]} Jurassic World</code>",
@ -121,7 +121,7 @@ async def imdblangset(_, query: CallbackQuery):
@app.on_cb("setimdb")
@ratelimiter
async def imdbsetlang(self: Client, query: CallbackQuery):
async def imdbsetlang(_, query: CallbackQuery):
i, lang, uid = query.data.split("#")
if query.from_user.id != int(uid):
return await query.answer("⚠️ Access Denied!", True)
@ -275,7 +275,7 @@ async def imdb_search_en(kueri, message):
@app.on_cb("imdbcari")
@ratelimiter
async def imdbcari(self: Client, query: CallbackQuery):
async def imdbcari(_, query: CallbackQuery):
BTN = []
i, lang, msg, uid = query.data.split("#")
if lang == "ind":

View file

@ -66,7 +66,7 @@ async def kbbi_search(_, ctx: Client):
kbbi_btn = InlineKeyboardMarkup(
[[InlineKeyboardButton(text="Open in Web", url=r.get('link'))]]
)
res = f"<b>Definisi:</b>\n"
res = "<b>Definisi:</b>\n"
for num, a in enumerate(r.get("result"), start=1):
submakna = "".join(f"{a}, " for a in a['makna'][0]['submakna'])[:-2]
contoh = "".join(f"{a}, " for a in a['makna'][0]['contoh'])[:-2]