mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
21 lines
409 B
Go
21 lines
409 B
Go
package commands
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/gempir/go-twitch-irc/v3"
|
|
"github.com/lyx0/nourybot/internal/commands/ivr"
|
|
"github.com/lyx0/nourybot/internal/common"
|
|
)
|
|
|
|
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)
|
|
}
|