add comment
This commit is contained in:
parent
e364b426e4
commit
b66a4f3b32
@ -187,6 +187,12 @@ const delPage = async (txt = '', source = {}, db) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* add twitch channel notify to group
|
||||||
|
* @param {string} txt command body format => twitch_user type tmpl
|
||||||
|
* @param {object} source
|
||||||
|
* @param {object} db
|
||||||
|
*/
|
||||||
const addTwitch = async (txt = '', source = {}, db) => {
|
const addTwitch = async (txt = '', source = {}, db) => {
|
||||||
if (!db) return null
|
if (!db) return null
|
||||||
if (!('type' in source) || !('groupId' in source) || !('userId' in source)) return null
|
if (!('type' in source) || !('groupId' in source) || !('userId' in source)) return null
|
||||||
|
Loading…
Reference in New Issue
Block a user