From 5dde755888b5248afae1a2b05a6f7806b2594b2c Mon Sep 17 00:00:00 2001 From: Tom Parslow Date: Fri, 2 May 2025 11:47:15 +0100 Subject: [PATCH] Add Room Name to output ports --- README.md | 1 + package.json | 2 +- src/BuzzshotCogsPlugin.ts | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5f0b840..8abc39f 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ This plugin will currently make the following data available to your COGS show: - Player 8 Name - Player 9 Name - Game Master Name +- Room Name Want more information from Buzzshot to use in COGS? Let us know! diff --git a/package.json b/package.json index aac9a96..be776f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cogs-plugin-buzzshot", - "version": "0.1.6", + "version": "0.1.7", "private": true, "dependencies": { "@buzzshot/api": "^0.1.6", diff --git a/src/BuzzshotCogsPlugin.ts b/src/BuzzshotCogsPlugin.ts index e45a846..0bdfccb 100644 --- a/src/BuzzshotCogsPlugin.ts +++ b/src/BuzzshotCogsPlugin.ts @@ -30,6 +30,7 @@ interface CogsConnectionParams { "Player 8 Name": string; "Player 9 Name": string; "Game Master Name": string; + "Room Name": string; }; outputEvents: { "Game Selected": string; @@ -173,6 +174,7 @@ export class BuzzshotCogsPlugin extends TypedEventTarget { "Player 8 Name": this.game?.group.players[7]?.first_name ?? "", "Player 9 Name": this.game?.group.players[8]?.first_name ?? "", "Game Master Name": this.game?.game_master?.name ?? "", + "Room Name": this.game?.room?.name ?? "", } this.connection.setOutputPortValues(values); }