Browse Source
cqhttp notify-hook:Compatibility with QQ Headless Project Napcat
pull/6257/head
metaforget
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
notify/cqhttp.sh
|
@ -52,7 +52,7 @@ cqhttp_send() { |
|
|
_finalUrl="$CQHTTP_APIROOT$CQHTTP_APIPATH?access_token=$_access_token&user_id=$_user_id&message=$_message" |
|
|
_finalUrl="$CQHTTP_APIROOT$CQHTTP_APIPATH?access_token=$_access_token&user_id=$_user_id&message=$_message" |
|
|
response="$(_get "$_finalUrl")" |
|
|
response="$(_get "$_finalUrl")" |
|
|
|
|
|
|
|
|
if [ "$?" = "0" ] && _contains "$response" "\"retcode\":0,\"status\":\"ok\""; then |
|
|
|
|
|
|
|
|
if [ "$?" = "0" ] && _contains "$response" "\"retcode\":0" && _contains "$response" "\"status\":\"ok\""; then |
|
|
_info "QQ send success." |
|
|
_info "QQ send success." |
|
|
return 0 |
|
|
return 0 |
|
|
fi |
|
|
fi |
|
|