Skip to content

Commit

Permalink
Bot14
Browse files Browse the repository at this point in the history
  • Loading branch information
Luftalian committed Jun 3, 2024
1 parent a922fed commit 6e34780
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions internal/handler/stamp.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package handler

import (
"log"
"os"

"github.com/traPtitech/traq-ws-bot/payload"
)

func (h *Handler) OnBotMessageStampsUpdatedHandler(p *payload.BotMessageStampsUpdated) {
log.Println("Received BOT_MESSAGE_STAMPS_UPDATED event: " + p.MessageID)
for _, stamp := range p.Stamps {
log.Println(stamp.StampID)
if stamp.UserID == os.Getenv("USER_ME_ID") && stamp.StampID == "" {
log.Println("User me stamped")
}
}
}

0 comments on commit 6e34780

Please sign in to comment.