mirror-nourybot/pkg/commands/ffz.go

21 lines
372 B
Go
Raw Normal View History

2022-08-07 18:10:40 +02:00
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 Ffz(target string, tc *twitch.Client) {
sugar := zap.NewExample().Sugar()
defer sugar.Sync()
resp, err := decapi.Ffz(target)
if err != nil {
sugar.Error(err)
}
common.Send(target, resp, tc)
}