add twitch stream notify
This commit is contained in:
1 parent
e2eeef9d82
commit
171df6193b
13 files changed
+552
-116
No files matched your search
@@ -70,9 +70,14 @@ const getLastPost = async (pageid = '') => {
|
||||
if (m !== null && m.length > 1) {
|
||||
id = m[1]
|
||||
}
|
||||
} else if (/\/videos\/(\d+)/.test(link)) {
|
||||
let m = link.match(/\/videos\/(\d+)/)
|
||||
if (m !== null && m.length > 1) {
|
||||
id = m[1]
|
||||
}
|
||||
}
|
||||
}
|
||||
console.log(time, link, txt, id)
|
||||
// console.log(time, link, txt, id)
|
||||
if (!time || !link || !id) return null
|
||||
let tmp = {
|
||||
txt,
|
||||
|
||||
Reference in new issue
Block a user