mirror-nourybot/pkg/commands/subage.go

19 lines
360 B
Go
Raw Normal View History

2021-10-16 00:56:08 +02:00
package commands
import (
2021-10-17 18:24:39 +02:00
"fmt"
2021-10-16 00:56:08 +02:00
"github.com/gempir/go-twitch-irc/v2"
2021-10-17 17:24:23 +02:00
"github.com/lyx0/nourybot/pkg/api/ivr"
2021-10-16 00:56:08 +02:00
)
func Subage(channel string, username string, streamer string, client *twitch.Client) {
2021-10-17 18:24:39 +02:00
ivrResponse, err := ivr.Subage(username, streamer)
if err != nil {
client.Say(channel, fmt.Sprint(err))
return
}
client.Say(channel, ivrResponse)
2021-10-16 00:56:08 +02:00
}