mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-21 21:58:09 +00:00
google Force Simplified Chinese Results for MagicGoogle Searches (#187)
All checks were successful
Github commit to telegram / build (push) Successful in 15s
All checks were successful
Github commit to telegram / build (push) Successful in 15s
This commit is contained in:
parent
79532983c0
commit
003dbd8bca
@ -22,7 +22,7 @@ async def google(message: Message):
|
||||
if not Config.SILENT:
|
||||
message = await message.edit(lang("google_processing"))
|
||||
results = ""
|
||||
for i in mg.search(query=query, num=5):
|
||||
for i in mg.search(query=query, num=5, language="zh-CN"):
|
||||
try:
|
||||
title = i["text"][:30] + "..."
|
||||
link = i["url"]
|
||||
|
Loading…
Reference in New Issue
Block a user