add twitch stream notify

This commit is contained in:
Jay
2018-06-28 17:37:33 +08:00
parent e2eeef9d82
commit 171df6193b
13 changed files with 552 additions and 116 deletions
+6 -1
View File
@@ -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,