mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
remove print statement so jq does not crash
This commit is contained in:
parent
1c268cd09a
commit
3af6d60641
|
@ -10,14 +10,12 @@ import (
|
|||
)
|
||||
|
||||
func AddChannel(login string, message twitch.PrivateMessage, app *Application) {
|
||||
fmt.Println(login)
|
||||
userId, err := decapi.GetIdByLogin(login)
|
||||
if err != nil {
|
||||
app.Logger.Error(err)
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println(userId)
|
||||
channel := &data.Channel{
|
||||
Login: login,
|
||||
TwitchID: userId,
|
||||
|
@ -26,7 +24,7 @@ func AddChannel(login string, message twitch.PrivateMessage, app *Application) {
|
|||
|
||||
err = app.Models.Channels.Insert(channel)
|
||||
if err != nil {
|
||||
app.Logger.DPanic(err)
|
||||
app.Logger.Error(err)
|
||||
}
|
||||
|
||||
reply := fmt.Sprintf("Joined channel %s", login)
|
||||
|
|
Loading…
Reference in a new issue