add twitch oauth login

This commit is contained in:
root committed 2018-08-12 23:31:09 +08:00
1 parent 89b24e0bf6
commit 334fce3b9b
11 files changed
+140 -77

No files matched your search

+1 -1
View File
@@ -236,7 +236,7 @@ const addTwitch = async (txt = '', source = {}, db) => {
return { reply }
}
let twitchUser = await api.twitch.getUserIDByName(name)
let twitchUser = await api.twitchPublic.getUserIDByName(name)
if (twitchUser === null) return null
// check channel count