Skip to content

Commit 44cdd7f

Browse files
committed
Change how taco shoot loads and add username into it
1 parent 97c84e5 commit 44cdd7f

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/chat/interface/mediaengine/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ var dialog = require("../../../dialogs.js");
33
var sws = require("../sharedwebsocket.js");
44
var userState = require("../userstate.js");
55
var uploadFileAsURL = require("../uploadfiles.js");
6+
var accountHelper = require("../../../accounthelper/index.js");
67

78
var movingMediaTexts = [
89
"Loading up the shrek videos...",
@@ -911,8 +912,13 @@ async function doMediaSelect() {
911912

912913
try {
913914
loadingMediaDiv.remove();
914-
915-
const embedURL = `https://random-rants-chat.github.io/taco-shoot-minigame/#${Math.round(Date.now())}`;
915+
var username = "player";
916+
if (accountHelper.getCurrentValidationState()) {
917+
username =
918+
accountHelper.getCurrentValidationState()
919+
.username;
920+
}
921+
const embedURL = `https://random-rants-chat.github.io/taco-shoot-minigame/?username=${encodeURIComponent(username)}&id=${Math.round(Date.now())}`;
916922

917923
sws.send(
918924
JSON.stringify({

wpstatic/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"timestamp":"1761657665548"}
1+
{"timestamp":"1761662553482"}

0 commit comments

Comments
 (0)