exit;
}
- if ($type eq 'reaction_added') {
- $dbh->do('INSERT INTO reaction_log (userid, channel, ts, reaction, event_type, event_ts) VALUES (?,?,?,?,?,?)', undef,
- $user, $channel, $ts, $reaction, $type, $event_ts);
- mark();
- } elsif ($type eq 'reaction_removed') {
+ if ($type eq 'reaction_added' || $type eq 'reaction_removed') {
$dbh->do('INSERT INTO reaction_log (userid, channel, ts, reaction, event_type, event_ts) VALUES (?,?,?,?,?,?)', undef,
$user, $channel, $ts, $reaction, $type, $event_ts);
mark();