add comment

This commit is contained in:
Jay 2018-06-28 17:41:49 +08:00
parent e364b426e4
commit b66a4f3b32

View File

@ -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) => {
if (!db) return null
if (!('type' in source) || !('groupId' in source) || !('userId' in source)) return null