diff --git a/src/commands/commandList/emotes/self_emote.js b/src/commands/commandList/emotes/self_emote.js index 93e2c4232..ef787ee4d 100644 --- a/src/commands/commandList/emotes/self_emote.js +++ b/src/commands/commandList/emotes/self_emote.js @@ -9,8 +9,8 @@ const CommandInterface = require('../../CommandInterface.js'); const weeb = require('../../../utils/weeb.js'); const emotes = require('../../../data/emotes.json').sEmote; -var emoteList = []; -for(var key in emotes) +const emoteList = []; +for(let key in emotes) emoteList.push(key); module.exports = new CommandInterface({ diff --git a/src/utils/snailSocket.js b/src/utils/snailSocket.js index 8400c0e64..56f60ca15 100644 --- a/src/utils/snailSocket.js +++ b/src/utils/snailSocket.js @@ -24,7 +24,10 @@ class SnailSocket { messageChannel (channelId, contents) { this.socket.emit('message-channel', { channelId, contents }); } - + + userBanned (userId, isBanned) { + this.socket.emit('user-banned', { userId, isBanned }); + } } module.exports = SnailSocket;