add twitch stream notify

This commit is contained in:
root committed 2018-06-28 17:37:33 +08:00
1 parent e2eeef9d82
commit 171df6193b
13 files changed
+552 -116

No files matched your search

+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,