Skip to content

Commit

Permalink
feat: lottery start at tip
Browse files Browse the repository at this point in the history
  • Loading branch information
jeyrce committed Aug 8, 2023
1 parent 49e7286 commit 61fdab7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion script/lottery.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,15 @@ def notify(msg):
"""
if msg == "-":
return ""
content = "一线希望: %s" % msg
if isinstance(msg, list) and 1 in msg:
content = "终于等到你!!!"
resp = requests.post(
url="https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=%s" % os.getenv("ROBOT_TOKEN", ""),
json={
"msgtype": "text",
"text": {
"content": "一线希望: %s" % msg,
"content": content,
}
},
)
Expand Down

0 comments on commit 61fdab7

Please sign in to comment.