Added !serverannounce command.
This commit is contained in:
parent
375cdfb3d8
commit
df18b4d783
4 changed files with 35 additions and 0 deletions
|
|
@ -84,6 +84,11 @@ module.exports = class{
|
|||
this.server.io.in(socket.chan).emit("chatMessage", {user: user.user, flair: user.flair, highLevel: user.highLevel, msg, type});
|
||||
}
|
||||
|
||||
relayServerAnnouncement(msg){
|
||||
//This codebase is always at a 10
|
||||
this.server.io.emit("chatMessage", {user: "Server", flair: "", highLevel: 10, msg, type: "announcement"});
|
||||
}
|
||||
|
||||
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