MCPcopy
hub / github.com/linbailo/zyqinglong / coolpush_bot

Function coolpush_bot

sendNotify.py:223–235  ·  view source on GitHub ↗
(title, content)

Source from the content-addressed store, hash-verified

221 print('推送失败!')
222
223def coolpush_bot(title, content):
224 print("\n")
225 if not QQ_SKEY or not QQ_MODE:
226 print("qq服务的QQ_SKEY或者QQ_MODE未设置!!\n取消推送")
227 return
228 print("qq服务启动")
229 url=f"https://qmsg.zendee.cn/{QQ_MODE}/{QQ_SKEY}"
230 payload = {'msg': f"{title}\n\n{content}".encode('utf-8')}
231 response = requests.post(url=url, params=payload).json()
232 if response['code'] == 0:
233 print('推送成功!')
234 else:
235 print('推送失败!')
236# push推送
237def pushplus_bot(title, content):
238 try:

Callers 1

sendFunction · 0.85

Calls 1

postMethod · 0.45

Tested by

no test coverage detected