more text, make podman

This commit is contained in:
stryan 2023-01-17 23:53:18 -05:00
parent a8c0c96505
commit c875585c4b
2 changed files with 11 additions and 1 deletions

View File

@ -10,9 +10,12 @@ endif
$(PROG): $(GOFILES)
go build -ldflags "-X main.GitCommit=$(GIT_COMMIT) -X main.GitTag=$(GIT_TAG)"
clean:
clean:
rm -f simpbot
podman: $(GOFILES)
podman build -t git.saintnet.tech/stryan/$(PROG) .
install: $(SIMPBOT)
install -d $(DESTDIR)$(PREFIX)/bin
install -m 755 $(PROG) $(DESTDIR)$(PREFIX)/bin

View File

@ -158,11 +158,18 @@ func main() {
client.SendText(evt.RoomID, "Need a member to subscribe to")
}
vt := body_s[2]
var subbed bool
for _, v := range vtubers {
if strings.ToUpper(v.Name) == strings.ToUpper(vt) {
v.Subs[evt.Sender] = true
subbed = true
}
}
if subbed {
client.SendText(evt.RoomID, "subbed")
} else {
client.SendText(evt.RoomID, "could not identify talent to subscribe to")
}
case "help":
client.SendText(evt.RoomID, "Supported commands: info,version,stats,reload,subscribe")