all repos — paprika @ df959ffa17c85e205764a81298def101b379abd9

go rewrite of taigabot

fix bad merge for weather.
Anthony DeDominic adedomin@gmail.com
Mon, 22 Nov 2021 09:43:27 -0500
commit

df959ffa17c85e205764a81298def101b379abd9

parent

2f3b2bfb11759a7ec40dc681b2168942a5d6b3fd

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M plugins/weather.goplugins/weather.go

@@ -30,8 +30,9 @@ parsed := strings.SplitN(m.Trailing(), " ", 2)

// TODO: AAAAAAAAAAAAAAAAAAAAAAAAAAA found := false + trigger := parsed[0] for _, v := range (Weather{}).Triggers() { - if parsed[0] == v { + if trigger == v { found = true break }

@@ -39,6 +40,7 @@ }

if !found { return "", NoReply } + var loc string if len(parsed) != 2 {