add logger
continuous-integration/drone/push Build is failing

This commit is contained in:
Jay
2021-02-22 10:52:03 +08:00
parent 27274019da
commit 4758bdb437
3 changed files with 9 additions and 1 deletions
+4 -1
View File
@@ -1,12 +1,13 @@
package api
import (
"fmt"
"time"
"git.trj.tw/golang/mtfosbot/model"
"git.trj.tw/golang/mtfosbot/module/apis/twitch"
"git.trj.tw/golang/mtfosbot/module/context"
"git.trj.tw/golang/mtfosbot/module/twitch-irc"
twitchirc "git.trj.tw/golang/mtfosbot/module/twitch-irc"
"git.trj.tw/golang/mtfosbot/module/utils"
"github.com/gin-gonic/contrib/sessions"
)
@@ -99,6 +100,8 @@ func hasChannel(id string, c *context.Context) *model.TwitchChannel {
return nil
}
fmt.Println("channels :: ", chs)
for _, v := range chs {
if v.ID == id {
return v