mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-22 07:08:19 +00:00
google 支持回复 (#99)
Co-authored-by: omg-xtao <100690902+omg-xtao@users.noreply.github.com>
This commit is contained in:
parent
b6aff5ed30
commit
23fd5e78fd
@ -15,7 +15,9 @@ async def google(message: Message):
|
|||||||
""" Searches Google for a string. """
|
""" Searches Google for a string. """
|
||||||
query = message.arguments
|
query = message.arguments
|
||||||
if not query:
|
if not query:
|
||||||
return await message.edit(lang('arg_error'))
|
if not message.reply_to_message:
|
||||||
|
return await message.edit(lang('arg_error'))
|
||||||
|
query = message.reply_to_message.text
|
||||||
mg = MagicGoogle()
|
mg = MagicGoogle()
|
||||||
query = query.replace(' ', '+')
|
query = query.replace(' ', '+')
|
||||||
if not Config.SILENT:
|
if not Config.SILENT:
|
||||||
|
Loading…
Reference in New Issue
Block a user