google 支持回复 (#99)

Co-authored-by: omg-xtao <100690902+omg-xtao@users.noreply.github.com>
This commit is contained in:
A lucky guy 2022-11-21 09:45:22 +08:00 committed by GitHub
parent b6aff5ed30
commit 23fd5e78fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,9 @@ async def google(message: Message):
""" Searches Google for a string. """
query = message.arguments
if not query:
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: