Added !serverannounce command.

This commit is contained in:
rainbow napkin 2024-12-08 15:09:25 -05:00
parent 375cdfb3d8
commit df18b4d783
4 changed files with 35 additions and 0 deletions

View file

@ -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"});