mirror-nourybot/pkg/commands/bttvemotes.go
2022-08-07 21:43:40 +02:00

21 lines
386 B
Go

package commands
import (
"github.com/gempir/go-twitch-irc/v3"
"github.com/lyx0/nourybot/pkg/common"
"github.com/lyx0/nourybot/pkg/decapi"
"go.uber.org/zap"
)
func Bttvemotes(target string, tc *twitch.Client) {
sugar := zap.NewExample().Sugar()
defer sugar.Sync()
resp, err := decapi.Bttvemotes(target)
if err != nil {
sugar.Error(err)
}
common.Send(target, resp, tc)
}