Added channel-wide !announce command
This commit is contained in:
parent
0182c6927e
commit
375cdfb3d8
10 changed files with 78 additions and 17 deletions
|
|
@ -83,4 +83,9 @@ module.exports = class{
|
|||
const user = this.server.getSocketInfo(socket);
|
||||
this.server.io.in(socket.chan).emit("chatMessage", {user: user.user, flair: user.flair, highLevel: user.highLevel, msg, type});
|
||||
}
|
||||
|
||||
relayChannelAnnouncement(socket, msg){
|
||||
//This codebase is always at a 10
|
||||
this.server.io.in(socket.chan).emit("chatMessage", {user: "Channel", flair: "", highLevel: 10, msg, type: "announcement"});
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue