mirror-nourybot/internal/commands/followage.go

22 lines
461 B
Go
Raw Normal View History

2022-08-08 16:43:21 +02:00
package commands
import (
2023-08-05 20:12:07 +02:00
"github.com/gempir/go-twitch-irc/v4"
2023-01-04 15:32:17 +01:00
"github.com/lyx0/nourybot/internal/commands/decapi"
"github.com/lyx0/nourybot/internal/common"
2022-08-08 16:43:21 +02:00
"go.uber.org/zap"
)
// ()currency 10 USD to EUR
func Followage(target, channel, username string, tc *twitch.Client) {
sugar := zap.NewExample().Sugar()
defer sugar.Sync()
resp, err := decapi.Followage(channel, username)
if err != nil {
sugar.Error(err)
}
common.Send(target, resp, tc)
}