mirror-nourybot/pkg/commands/profilepicture.go

19 lines
333 B
Go
Raw Normal View History

2021-10-18 18:47:38 +02:00
package commands
import (
"fmt"
"github.com/gempir/go-twitch-irc/v2"
"github.com/lyx0/nourybot/pkg/api/ivr"
)
func ProfilePicture(channel string, target string, client *twitch.Client) {
reply, err := ivr.ProfilePicture(target)
if err != nil {
client.Say(channel, fmt.Sprint(err))
return
}
client.Say(channel, reply)
}