mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-02 10:44:50 +00:00
Fix var
This commit is contained in:
parent
6ba7d7ed12
commit
6172729559
2 changed files with 3 additions and 3 deletions
|
|
@ -49,7 +49,7 @@ LOGGER = getLogger()
|
||||||
|
|
||||||
|
|
||||||
@app.on_inline_query()
|
@app.on_inline_query()
|
||||||
async def inline_menu(_, inline_query: InlineQuery):
|
async def inline_menu(self, inline_query: InlineQuery):
|
||||||
if inline_query.query.strip().lower().strip() == "":
|
if inline_query.query.strip().lower().strip() == "":
|
||||||
aspymon_ver = (await shell_exec("pip freeze | grep async-pymongo"))[0]
|
aspymon_ver = (await shell_exec("pip freeze | grep async-pymongo"))[0]
|
||||||
buttons = InlineKeyboard(row_width=2)
|
buttons = InlineKeyboard(row_width=2)
|
||||||
|
|
|
||||||
|
|
@ -200,10 +200,10 @@ async def gsearch(_, message):
|
||||||
query = message.text.split(" ", maxsplit=1)[1]
|
query = message.text.split(" ", maxsplit=1)[1]
|
||||||
msg = await message.reply_text(f"**Googling** for `{query}` ...")
|
msg = await message.reply_text(f"**Googling** for `{query}` ...")
|
||||||
try:
|
try:
|
||||||
html = await fetch.get(
|
gs = await fetch.get(
|
||||||
f"https://www.google.com/search?q={query}&gl=id&hl=id&num=17",
|
f"https://www.google.com/search?q={query}&gl=id&hl=id&num=17",
|
||||||
)
|
)
|
||||||
soup = BeautifulSoup(html.text, "lxml")
|
soup = BeautifulSoup(gs.text, "lxml")
|
||||||
|
|
||||||
# collect data
|
# collect data
|
||||||
data = []
|
data = []
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue