mirror of
https://github.com/nx-bat/pet-the-pond.git
synced 2026-09-22 10:29:11 -04:00
prettier
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { CommandClient, Constants, Event, Member, Message } from "athena-prime";
|
||||
import { CommandClient, Constants, Event, Member, Message } from 'athena-prime';
|
||||
import config from '../../config';
|
||||
import { getUser, updateUserStatistics } from "../../utils";
|
||||
import { getUser, updateUserStatistics } from '../../utils';
|
||||
|
||||
// ----------
|
||||
|
||||
@@ -12,9 +12,8 @@ class MessageReactionAddEvent extends Event<CommandClient> {
|
||||
if (msg.author.id !== config.identifiers.targetId || emoji.id !== config.identifiers.emojiId) return;
|
||||
|
||||
const _user = await getUser(member.id);
|
||||
if (_user.flags.blacklisted || !_user.settings.participating) return;
|
||||
if (!_user.settings.participating) return;
|
||||
|
||||
// Update Statistics.
|
||||
await updateUserStatistics(member.id, { pets: _user.statistics.pets + 1 });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user