将ServerChan的推送与Telegram的推送文本分开赋值

This commit is contained in:
GamerNoTitle 2020-12-12 19:19:45 +08:00
parent 8d4dd91f61
commit 751c9108d4
2 changed files with 13 additions and 6 deletions

View File

@ -6,8 +6,6 @@
签到时间是早上10点如果有需要就自己修改.github/workflows/AutoSignin.yml中第12行的时间时间遵循UTC时间+8才是我们的时间
`你当前预览的是多用户分支,该分支正在开发……`
## 赞助
点击下面的Badge其中一个就可以跳转到相应页面感谢老板的支持

17
main.py
View File

@ -113,7 +113,15 @@ if __name__ == "__main__":
failure.append(cookie)
msg.append(message)
outputmsg=str(msg).replace("[",'').replace(']','').replace(',','<br>').replace('\'','')
infomsg='''
teleinfomsg='''
感谢使用来自GamerNoTitle的网易云游戏自动签到脚本
今日签到结果如下
成功数量{0}/{2}
失败数量{1}/{2}
具体情况如下
{3}
'''.format(len(success),len(failure),len(cookies),outputmsg)
scinfomsg='''
感谢使用来自<a herf='https://bili33.top'>GamerNoTitle</a><a herf='https://github.com/GamerNoTitle/wyycg-autocheckin'>网易云游戏自动签到脚本</a><br>
今日签到结果如下<br>
成功数量{0}/{2}<br>
@ -121,8 +129,9 @@ if __name__ == "__main__":
具体情况如下<br>
{3}
'''.format(len(success),len(failure),len(cookies),outputmsg)
scsend(sckey,infomsg)
send(teleid,infomsg)
print(infomsg)
scsend(sckey,scinfomsg)
send(teleid,teleinfomsg)
print(scinfomsg)
if(len(msg)!=0):
raise Error