1
0
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:
Ean Milligan (Bastion)
2022-09-20 14:34:51 -04:00
parent 5bc71c2767
commit 57d6b45d2e
3 changed files with 7 additions and 6 deletions

View File

@@ -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 {