mirror-nourybot/internal/commands/firstline.go

21 lines
409 B
Go
Raw Normal View History

2022-08-08 16:43:21 +02:00
package commands
import (
"fmt"
"github.com/gempir/go-twitch-irc/v3"
2023-01-04 15:32:17 +01:00
"github.com/lyx0/nourybot/internal/commands/ivr"
"github.com/lyx0/nourybot/internal/common"
2022-08-08 16:43:21 +02:00
)
func FirstLine(target, channel, username string, tc *twitch.Client) {
ivrResponse, err := ivr.FirstLine(channel, username)
if err != nil {
common.Send(channel, fmt.Sprint(err), tc)
return
}
common.Send(target, ivrResponse, tc)
}