package main import ( "log" "git.saintnet.tech/stryan/vega/weatherbot" "github.com/spf13/viper" ) type Action func(inputs ...string) string var ActionList map[string]Action func (t *TestBot) WeatherReport() { report := weatherbot.GetDailyReport(viper.GetString("owm_api_key"), viper.GetString("lat"), viper.GetString("long")) _, err := t.Bot.Client.SendText(t.Bot.ManagementRoomID, report) if err != nil { log.Fatal(err) } }