MCPcopy Create free account
hub / github.com/Mashiro2000/HeyTapTask / coolpush_bot

Function coolpush_bot

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

Source from the content-addressed store, hash-verified

177
178# QQ机器人
179def coolpush_bot(title, content):
180 print("\n")
181 if not QQ_SKEY or not QQ_MODE:
182 print("qq服务的QQ_SKEY或者QQ_MODE未设置!!\n取消推送")
183 return
184 print("qq服务启动")
185 url=f"https://qmsg.zendee.cn/{QQ_MODE}/{QQ_SKEY}"
186 payload = {'msg': f"{title}\n\n{content}".encode('utf-8')}
187 response = requests.post(url=url, params=payload).json()
188 if response['code'] == 0:
189 print('推送成功!')
190 else:
191 print('推送失败!')
192
193# push推送
194def pushplus_bot(title, content):

Callers 1

sendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected