mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-25 08:34:49 +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. """
|
||||
query = message.arguments
|
||||
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()
|
||||
query = query.replace(' ', '+')
|
||||
if not Config.SILENT:
|
||||
|
Loading…
Reference in New Issue
Block a user