From 38b52c027450cb4c26d62a3beb5822c6c607e8c2 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Tue, 23 Nov 2021 21:21:56 +0800 Subject: Add basic performance tracking, will make this a dedicated gui sometime --- features/streamsGUI/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'features/streamsGUI') diff --git a/features/streamsGUI/index.js b/features/streamsGUI/index.js index 2cd2a4f..aaf5ab7 100644 --- a/features/streamsGUI/index.js +++ b/features/streamsGUI/index.js @@ -122,7 +122,7 @@ class StreamElement extends SoopyBoxElement { this.titleElement.setText(stream.title) - this.channelElement.setText((twitch ? "§0"+stream.user_name : "§0"+stream.channelTitle) + (twitch?"&7 - " + stream.viewer_count + " viewers":"")) + this.channelElement.setText((twitch ? "§0"+stream.user_name : "§0"+stream.channelTitle) + (twitch?"&7 - " + stream.viewer_count + " viewer"+(stream.viewer_count!==1?"s":""):"")) this.channelImg.setImage(twitch ? `https://static-cdn.jtvnw.net/previews-ttv/live_user_${stream.user_login}-640x360.jpg` : stream.thumbnails.high.url) -- cgit