mirror-nourybot/internal/commands/bttv.go

15 lines
292 B
Go
Raw Normal View History

2022-08-07 18:10:40 +02:00
package commands
import (
2022-08-07 21:43:40 +02:00
"fmt"
2022-08-07 18:10:40 +02:00
"github.com/gempir/go-twitch-irc/v3"
2023-01-04 15:32:17 +01:00
"github.com/lyx0/nourybot/internal/common"
2022-08-07 18:10:40 +02:00
)
2022-08-07 21:43:40 +02:00
func Bttv(target, query string, tc *twitch.Client) {
reply := fmt.Sprintf("https://betterttv.com/emotes/shared/search?query=%s", query)
2022-08-07 18:10:40 +02:00
2022-08-07 21:43:40 +02:00
common.Send(target, reply, tc)
2022-08-07 18:10:40 +02:00
}