mirror of
https://github.com/PHIDIAS0303/ClusterChatSync.git
synced 2026-11-11 15:14:52 +09:00
Update controller.js
This commit is contained in:
1 parent
1220c06d1f
commit
ef5d18a171
1 file changed
+8
@@ -102,6 +102,14 @@ class ControllerPlugin extends BaseControllerPlugin {
|
||||
const nrc_username = nrc.substring(0, nrc_index);
|
||||
const nrc_message = nrc.substring(nrc_index + 1).trim();
|
||||
await this.sendMessage(request, `**\`${nrc_username}\`**: ${nrc_message}`);
|
||||
} else if (request.action === 'JOIN') {
|
||||
await this.sendMessage(request, `**\`${nrc_username}\`** joined the game`);
|
||||
} else if (request.action === 'LEAVE') {
|
||||
await this.sendMessage(request, `**\`${nrc_username}\`** left the game`);
|
||||
} else if (request.action === 'KICK') {
|
||||
await this.sendMessage(request, `**\`${nrc_username}\`** was kicked from the game`);
|
||||
} else if (request.action === 'BAN') {
|
||||
await this.sendMessage(request, `**\`${nrc_username}\`** was banned from the game`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user