mirror of
https://github.com/Burn-E99/SweeperBot.git
synced 2026-06-04 07:53:50 -04:00
v0.4.3 upgrade to dd16, improve reactionAdd ignore to ignore local version of self
This commit is contained in:
@@ -2,7 +2,7 @@ import config from '../../config.ts';
|
||||
import {
|
||||
// Discordeno deps
|
||||
Bot,
|
||||
botId,
|
||||
sweeperBotIds,
|
||||
} from '../../deps.ts';
|
||||
import { ReactionAdd } from '../types/eventTypes.ts';
|
||||
import utils from '../utils.ts';
|
||||
@@ -10,7 +10,7 @@ import functions from '../functions/_index.ts';
|
||||
|
||||
export const reactionAdd = async (bot: Bot, payload: ReactionAdd) => {
|
||||
// Ignore self
|
||||
if (botId === payload.userId) return;
|
||||
if (sweeperBotIds.includes(payload.userId)) return;
|
||||
|
||||
if (config.pollChannels.includes(payload.channelId)) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user