-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (76 loc) · 2.8 KB
/
get_prediction.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Get Prediction
on:
schedule:
- cron: "03 16 * * *"
jobs:
send-message:
runs-on: ubuntu-latest
steps:
- name: Send message to LINE
env:
LINE_ACCESS_TOKEN: ${{ secrets.LINE_CHANNEL_ACCESS_TOKEN }}
LINE_USER_ID: ${{ secrets.LINE_USER_ID }}
run: |
curl -X POST https://api.line.me/v2/bot/message/push \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LINE_ACCESS_TOKEN" \
-d '{
"to": "'$LINE_USER_ID'",
"messages":[
{
"type":"text",
"text":"喚醒 Line 機器人"
}
]
}'
sleep 300
curl -X POST https://api.line.me/v2/bot/message/push \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LINE_ACCESS_TOKEN" \
-d '{
"to": "'$LINE_USER_ID'",
"messages":[
{
"type":"text",
"text":"NBA thismonth 30"
},
{
"type":"text",
"text":"NBA lastmonth 30"
}
]
}'
sleep 60
curl -X POST https://api.line.me/v2/bot/message/push \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LINE_ACCESS_TOKEN" \
-d '{
"to": "'$LINE_USER_ID'",
"messages":[
{
"type":"text",
"text":"NHL冰球 thismonth 30"
},
{
"type":"text",
"text":"NHL冰球 lastmonth 30"
}
]
}'
sleep 60
curl -X POST https://api.line.me/v2/bot/message/push \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LINE_ACCESS_TOKEN" \
-d '{
"to": "'$LINE_USER_ID'",
"messages":[
{
"type":"text",
"text":"MLB thismonth 30"
},
{
"type":"text",
"text":"MLB lastmonth 30"
}
]
}'