Skip to content

Commit

Permalink
로그를 찍습니다 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
trz-21 authored Mar 11, 2024
1 parent b777fc8 commit 7b182c1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib/parseMessage.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import * as log from 'bog';

const usernameRegex = /(<@[A-Z0-9]{2,}>)/g;

/**
Expand Down Expand Up @@ -85,6 +87,11 @@ function parseReactedMessage(reaction, reactedMsg, emojis) {
// Filter self reaction
users.filter((u) => u !== reaction.user);

log.info("reactedMsg: " + reactedMsg.text)
log.info("users: " + users.join(','))
log.info("sender: " + sender)
log.info("final users: " + users.join(','))

const type = emojis.filter((e: any) => e.emoji == `:${reaction.reaction}:`)[0].type;

// Give each user a update
Expand Down

0 comments on commit 7b182c1

Please sign in to comment.