mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
16 lines
294 B
Go
16 lines
294 B
Go
package commands
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/gempir/go-twitch-irc/v2"
|
|
"github.com/lyx0/nourybot/pkg/api/aiden"
|
|
)
|
|
|
|
func Weather(channel string, location string, client *twitch.Client) {
|
|
|
|
reply := aiden.Weather(fmt.Sprintf("api/v1/misc/weather/%s", location))
|
|
client.Say(channel, reply)
|
|
|
|
}
|