Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ikura-hamu committed Aug 20, 2024
1 parent a0d1094 commit c2cb8b5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions handler/message_created.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,17 @@ func (h *BotHandler) invite(p *payload.MessageCreated) {
return
}

err = h.traqClient.AddStamp(ctx, p.Message.ID, h.acceptStampID, 1)
if err != nil {
log.Println("failed to add stamp: ", err)
return
}
err = h.traqClient.AddStamp(ctx, p.Message.ID, h.rejectStampID, 1)
if err != nil {
log.Println("failed to add stamp: ", err)
return
}

}

func (h *BotHandler) list(p *payload.MessageCreated) {
Expand Down

0 comments on commit c2cb8b5

Please sign in to comment.