Skip to content

Commit

Permalink
snail socket ban
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherBThai committed Apr 10, 2022
1 parent 41787ee commit 65b604d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/commands/commandList/emotes/self_emote.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
5 changes: 4 additions & 1 deletion src/utils/snailSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 65b604d

Please sign in to comment.