From 938b5871f8d64a006f91dba0a36932fb331b133f Mon Sep 17 00:00:00 2001 From: Waggle Date: Tue, 31 Dec 2024 05:35:38 +0000 Subject: [PATCH] Changes for Tecmo Secret of The Stars run end --- backend/backend.js | 12 +++- backend/gcn_controller.json | 2 + backend/gcn_rvl_sideways_controller.json | 2 + backend/gcn_vc_nes_controller.json | 2 + backend/gcn_vc_snes_controller.json | 2 + backend/global.json | 84 +++++++++++++++++++++--- backend/n64_controller.json | 2 + backend/ps2_controller.json | 2 + backend/ps2_controller_digital.json | 2 + backend/snes_controller.json | 2 + 10 files changed, 101 insertions(+), 11 deletions(-) diff --git a/backend/backend.js b/backend/backend.js index 831f645..43ff13c 100644 --- a/backend/backend.js +++ b/backend/backend.js @@ -3639,7 +3639,7 @@ function generateTwitchBotOAuthToken(twitchCredentialsObject) { function updateStreamTitleTest() { if (globalConfig.enable_updating_stream_title_automatically == true) { - updateStreamTitle("ALTTP: https://www.timeanddate.com/countdown/generic?iso=20230403T00&p0=1440&msg=The+Legend+of+Zelda:+A+Link+to+the+Past&font=sanserif&csz=1", twitchCredentials, twitchJsonEncodedAppAccessToken); + updateStreamTitle("This Is A Test", twitchCredentials, twitchJsonEncodedAppAccessToken); } } @@ -5086,8 +5086,14 @@ async function onMessageHandler(target, tags, message, self) { //console.log("Test 97"), /((h+i+[gq]+h+)+\s+(q+u+a+l+i+t+y+)\s*([\w\,]*)*\s*)*((b+e+s+t+)+|(b+u+y+)+|(c+h+e+a+p)+)+\s+((v+i+e+w+\w*)+|(f+o+l+o+w+\w*)+)+\s*([\w\,]*)*\s*((v+i+e+w+\w*)+|(f+o+l+o+w+\w*)+)+/ig.test(replaceCyrillicsWithLatin.normalize("NFD").replace(/[\u007E-\uFFFF]+/ig, "")), // [Mon 2024-06-10T19:14:03Z] Hiqh quality and Cheap Viewers on u.to/vRi7IA //console.log("Test 98"), - /((h+i+[gq]+h+)+\s+(q+u+a+l+i+t+y+)\s*([\w\,]*)*\s*)*((b+e+s+t+)+|(b+u+y+)+|(c+h+e+a+p)+)+\s+((v+i+e+w+\w*)+|(f+o+l+o+w+\w*)+)+\s*([\w\,]*)*/ig.test(replaceCyrillicsWithLatin.normalize("NFD").replace(/[\u007E-\uFFFF]+/ig, "")) // [Mon 2024-06-10T19:14:03Z] Hiqh quality and Cheap Viewers on u.to/vRi7IA - //console.log("Test 99") + /((h+i+[gq]+h+)+\s+(q+u+a+l+i+t+y+)\s*([\w\,]*)*\s*)*((b+e+s+t+)+|(b+u+y+)+|(c+h+e+a+p)+)+\s+((v+i+e+w+\w*)+|(f+o+l+o+w+\w*)+)+\s*([\w\,]*)*/ig.test(replaceCyrillicsWithLatin.normalize("NFD").replace(/[\u007E-\uFFFF]+/ig, "")), // [Mon 2024-06-10T19:14:03Z] Hiqh quality and Cheap Viewers on u.to/vRi7IA + //console.log("Test 99"), + /((r*e*m+o+v+e+)+|(n+o+)+)+\s*(\w*)\s*(s*p+a+c+e+)+/ig.test(replaceCyrillicsWithLatin.normalize("NFD").replace(/[\u007E-\uFFFF]+/ig, "")), // Remove the space / No Space + //console.log("Test 100"), + /(l+e+t+[\'\’]*\s*[UuSs]*)+\s*(c+o+n+e+c+t+)+\s*(\w*)\s*(d+i+s+c+o+r+d+)+/ig.test(replaceCyrillicsWithLatin.normalize("NFD").replace(/[\u007E-\uFFFF]+/ig, "")), // [Sat 2024-11-09T15:38:46Z] Hey streamer 👋,I’ve been really enjoying your content, which is why I’m part of your squad. I noticed you’re facing some challenges with growing your channel and leveling up. I’d love to share ideas and help elevate your stream. Let’s connect on Discord: Femight7. (Let's connect on Discord) + //console.log("Test 101"), + /(l+e+t+[\'\’]*\s*[UuSs]*)+\s*(c+o+n+e+c+t+)+\s*(\w*)\s*(d+i+s+c+o+r+d+)+/ig.test(replaceCyrillicsWithLatin.normalize("NFD").replace(/[\u007E-\uFFFF]+/ig, "")) // [Sat 2024-11-09T15:38:46Z] Hey streamer 👋,I’ve been really enjoying your content, which is why I’m part of your squad. I noticed you’re facing some challenges with growing your channel and leveling up. I’d love to share ideas and help elevate your stream. Let’s connect on Discord: Femight7. (growing your channel) + //console.log("Test 102") ]; let multiMessageSpamBotTypeA = [ /((i+t+)+\s*(i+s+)|(i+t+\W*s+))+\s+(n+i+c+e+)+\s+(t+o+)+\s+(m+e+t+)+\s+(y+\w*)+\s+(\w+\W*v+e+)+\s+(w+a+t+c+h+e+d+)+\s+(y+\w*)+\s+([^\s]*)+\s+(t+w+\w*t+c+h+)\s+(c+h+a+n+e+l+\w*\W*)+/ig.test(replaceCyrillicsWithLatin.normalize("NFD").replace(/[\u007E-\uFFFF]+/ig, "")), diff --git a/backend/gcn_controller.json b/backend/gcn_controller.json index 725785e..43c946c 100644 --- a/backend/gcn_controller.json +++ b/backend/gcn_controller.json @@ -20672,6 +20672,8 @@ "input_value": "0x00007F7F7F7F0002L", "input_name": "Wait", "input_alias": [ + "Xtop", + "Xtahp", "Ayop", "Wyop", "Syop", diff --git a/backend/gcn_rvl_sideways_controller.json b/backend/gcn_rvl_sideways_controller.json index bcabd15..f9ac4bb 100644 --- a/backend/gcn_rvl_sideways_controller.json +++ b/backend/gcn_rvl_sideways_controller.json @@ -25088,6 +25088,8 @@ "input_value": "0x00007F7F7F7F0002L", "input_name": "Wait", "input_alias": [ + "Xtop", + "Xtahp", "Ayop", "Wyop", "Syop", diff --git a/backend/gcn_vc_nes_controller.json b/backend/gcn_vc_nes_controller.json index 91abdbd..6294bbd 100644 --- a/backend/gcn_vc_nes_controller.json +++ b/backend/gcn_vc_nes_controller.json @@ -18383,6 +18383,8 @@ "input_value": "0x00007F7F7F7F0002L", "input_name": "Wait", "input_alias": [ + "Xtop", + "Xtahp", "Ayop", "Wyop", "Syop", diff --git a/backend/gcn_vc_snes_controller.json b/backend/gcn_vc_snes_controller.json index 5d994c9..cc46f0c 100644 --- a/backend/gcn_vc_snes_controller.json +++ b/backend/gcn_vc_snes_controller.json @@ -20749,6 +20749,8 @@ "input_value": "0x00007F7F7F7F0002L", "input_name": "Wait", "input_alias": [ + "Xtop", + "Xtahp", "Ayop", "Wyop", "Syop", diff --git a/backend/global.json b/backend/global.json index 30421c8..6dc4355 100644 --- a/backend/global.json +++ b/backend/global.json @@ -6,7 +6,7 @@ "auto_restart_machine_hour": 7, "linux_restart_command": "sudo reboot now", "windows_restart_command": "shutdown \/r", - "enable_auto_restart_mongod": true, + "enable_auto_restart_mongod": false, "enable_auto_restart_mongod_daily": true, "auto_restart_mongod_weekday": 0, "auto_restart_mongod_hour": 7, @@ -46,8 +46,8 @@ "webserver_port": 8080, "chat_config": "chat_config.json", "run_start_time": 1734220800000, - "next_run_start_time": 1734220800000, - "stream_end_time": 1734220800000, + "next_run_start_time": 1743292800000, + "stream_end_time": 1735344000000, "initial_accept_inputs": false, "initial_accept_tts": false, "initial_accept_inputs_from_anyone": true, @@ -106,7 +106,7 @@ "longest_macro_name_length_allowed": 250, "reason_macro_database_is_disabled": "You can now save macros just fine, everything now works as intended :)", "use_discord_bot": true, - "discord_url": "https://discord.gg/yHETNuZCUK Go to the #polls channel to vote for the next run (Date TBD)! The options are: Final Fantasy Tactics (PS1), Super Paper Mario (Wii) and Earthbound (SNES), you can vote for more than one option!", + "discord_url": "https://discord.gg/yHETNuZCUK Go to the #polls channel to vote for the next run (Countdown here: https://www.timeanddate.com/countdown/generic?iso=20250330T00&p0=1440&msg=Next+Run,+Vote+In+The+Discord&font=sanserif&csz=1)! The options are: Final Fantasy Tactics (PS1), Super Paper Mario (Wii) and Earthbound (SNES), you can vote for more than one option!", "github_message": "The source code for everything used on this stream can be found here:", "github_repo": "https://github.com/WhatAboutGaming/Twitch-Plays-Stuff", "run_id": 11, @@ -114,7 +114,7 @@ "overlay_enable_hourly_beeps": true, "overlay_enable_secondary_beeps": true, "overlay_header_text": "Twitch Plays (Viewers play\/Chat plays) {{game_title_short}}\non an actual Wii (SNES Emulator on Wii) !help !discord", - "overlay_advanced_mode_help_message_to_display": "\n\n!help to learn how to play\n\nGo to the !discord and go to\n#polls to vote for next game\n(Date TBD)", + "overlay_advanced_mode_help_message_to_display": "!help to learn how to play\nGame beaten! Congrats!\nStream goes offline in\n{{stream_end_time}}\n(The {{play_time:1735344000000}} mark)\nGo to the !discord and go to\n#polls to vote for next game\n(starts in {{next_run_start_time}})", "overlay_text_rotation": [ "Type !help or !commands to learn how to play", "Type !macrohelp to learn how to save macros and\nexecute saved macros", @@ -122,8 +122,42 @@ "Type !discord to get a link to the stream Discord server\nand go to #polls to vote for next game", "Please, don't delete any files, and please save regularly", "Attempting to delete or deleting any file will earn you an\nunappealable permanent ban", - "Current goal: Start the game!", + "Beat Cat Boo: {{play_time:1734224106127}} ({{absolute_time:1734224106127}})!", + "Beat Dr. Gari: {{play_time:1734240501573}} ({{absolute_time:1734240501573}})!", + "Beat Badmen: {{play_time:1734241922965}} ({{absolute_time:1734241922965}})!", + "Beat Badbad: {{play_time:1734251127530}} ({{absolute_time:1734251127530}})!", + "Beat Bingo and Leach:\n{{play_time:1734306807854}} ({{absolute_time:1734306807854}})!", + "Beat Golan: {{play_time:1734324668806}} ({{absolute_time:1734324668806}})!", + "Beat Fire: {{play_time:1734327193954}} ({{absolute_time:1734327193954}})!", + "Beat Mermaid: {{play_time:1734328753174}} ({{absolute_time:1734328753174}})!", + "Beat Sidon: {{play_time:1734331323156}} ({{absolute_time:1734331323156}})!", + "Beat Golan again: {{play_time:1734410725346}} ({{absolute_time:1734410725346}})!", + "Beat Fire again: {{play_time:1734412883993}} ({{absolute_time:1734412883993}})!", + "Beat Mermaid again: {{play_time:1734413849121}} ({{absolute_time:1734413849121}})!", + "Beat Sidon again: {{play_time:1734415487474}} ({{absolute_time:1734415487474}})!", + "Beat Garados: {{play_time:1734423063320}} ({{absolute_time:1734423063320}})!", + "Beat Andy: {{play_time:1734463278411}} ({{absolute_time:1734463278411}})!", + "Beat Arthur: {{play_time:1734474006249}} ({{absolute_time:1734474006249}})!", + "Beat Cold and Hot Wind:\n{{play_time:1734484449447}} ({{absolute_time:1734484449447}})!", + "Beat Dram: {{play_time:1734504077543}} ({{absolute_time:1734504077543}})!", + "Beat Clay: {{play_time:1734505579617}} ({{absolute_time:1734505579617}})!", + "Beat Undead: {{play_time:1734567041226}} ({{absolute_time:1734567041226}})!", + "Beat Jubei: {{play_time:1734569384383}} ({{absolute_time:1734569384383}})!", + "Beat Clarken: {{play_time:1734570963786}} ({{absolute_time:1734570963786}})!", + "Beat Booth: {{play_time:1734599876551}} ({{absolute_time:1734599876551}})!", + "Beat Gara: {{play_time:1734679635679}} ({{absolute_time:1734679635679}})!", + "Beat Godem: {{play_time:1734852427266}} ({{absolute_time:1734852427266}})!", + "Beat Bio Dram: {{play_time:1734935117959}} ({{absolute_time:1734935117959}})!", + "Beat Bio Booth: {{play_time:1734939689927}} ({{absolute_time:1734939689927}})!", + "Beat Bio Gara: {{play_time:1734942164910}} ({{absolute_time:1734942164910}})!", + "Beat Bio Godem: {{play_time:1734946283379}} ({{absolute_time:1734946283379}})!", + "Beat Homncruse 1: {{play_time:1734978604887}} ({{absolute_time:1734978604887}})!", + "Beat Homncruse 2/Credits:\n{{play_time:1734980983008}} ({{absolute_time:1734980983008}})!", + "Current goal: Celebrate! Game was beaten! Congrats to\nall who participated! Also beat Homncruse again lol", + "Celebrate! Game was beaten! Congrats to all\nwho participated!", "The time is {{current_time_no_millis}}.\n{{game_title_short}} has been going for {{play_time_total_string_no_millis}}.", + "Stream goes offline in {{stream_end_time}} (The {{play_time:1735344000000}} mark)", + "{{next_game_title}} (starts in\n{{next_run_start_time}})", "If anything breaks, please ping @WhatAboutGamingLive", "The Endgame Conditions are: In order to beat the game, you\nhave to do the following tasks in the following order:", "1) Beat all main bosses, order in which bosses are beaten\nDOES NOT MATTER", @@ -138,10 +172,42 @@ "Not sure how to play? You can type !help or !commands in chat at any time to have a help message sent straight to chat.", "You can type !macrohelp to learn how to save and execute saved macros.", "All of the code used on this stream is open source and can be found here: https://github.com/WhatAboutGaming/Twitch-Plays-Stuff", - "We have a Discord server and there is currently a poll up for which game to be played after this (Date TBD), the options are: Final Fantasy Tactics (PS1), Super Paper Mario (Wii) and Earthbound (SNES), you can vote for more than one option, Discord server link here: https://discord.gg/yHETNuZCUK", + "We have a Discord server and there is currently a poll up for which game to be played after this (In {{next_run_start_time}}), the options are: Final Fantasy Tactics (PS1), Super Paper Mario (Wii) and Earthbound (SNES), you can vote for more than one option, Discord server link here: https://discord.gg/yHETNuZCUK Countdown here: https://www.timeanddate.com/countdown/generic?iso=20250330T00&p0=1440&msg=Next+Run,+Vote+In+The+Discord&font=sanserif&csz=1", "The time is {{current_time}}. {{game_title}} has been going for {{play_time_total_string}}.", + "Stream goes offline in {{stream_end_time}} (The {{play_time:1735344000000}} mark). Countdown here: https://www.timeanddate.com/countdown/generic?iso=20241228T00&p0=1440&msg=Stream+Going+Offline&font=sanserif&csz=1", "We're currently playing {{game_title}}. Save files for this run can be found here: https://github.com/WhatAboutGaming/Twitch-Plays-Stuff/tree/master/Save%20Files/Tecmo%20Secret%20of%20The%20Stars and the videos for this run can be found on this playlist: https://www.twitch.tv/collections/Mv0n2WNdABg9Aw", - "Current goal: Start the game!" + "Video: Beating Cat Boo https://www.twitch.tv/videos/2327961652 {{play_time:1734224106127}} ({{absolute_time:1734224106127}})", + "Video: Beating Dr. Gari https://www.twitch.tv/videos/2327961650 {{play_time:1734240501573}} ({{absolute_time:1734240501573}})", + "Video: Beating Badmen https://www.twitch.tv/videos/2327961651 {{play_time:1734241922965}} ({{absolute_time:1734241922965}})", + "Video: Beating Badbad https://www.twitch.tv/videos/2327975421 {{play_time:1734251127530}} ({{absolute_time:1734251127530}})", + "Video: Beating Bingo and Leach https://www.twitch.tv/videos/2327986893 {{play_time:1734306807854}} ({{absolute_time:1734306807854}})", + "Video: Beating Golan https://www.twitch.tv/videos/2328046011 {{play_time:1734324668806}} ({{absolute_time:1734324668806}})", + "Video: Beating Fire https://www.twitch.tv/videos/2328063958 {{play_time:1734327193954}} ({{absolute_time:1734327193954}})", + "Video: Beating Mermaid https://www.twitch.tv/videos/2328074885 {{play_time:1734328753174}} ({{absolute_time:1734328753174}})", + "Video: Beating Sidon https://www.twitch.tv/videos/2328085907 {{play_time:1734331323156}} ({{absolute_time:1734331323156}})", + "Video: Beating Golan again https://www.twitch.tv/videos/2328870444 {{play_time:1734410725346}} ({{absolute_time:1734410725346}})", + "Video: Beating Fire again https://www.twitch.tv/videos/2328870445 {{play_time:1734412883993}} ({{absolute_time:1734412883993}})", + "Video: Beating Mermaid again https://www.twitch.tv/videos/2328870446 {{play_time:1734413849121}} ({{absolute_time:1734413849121}})", + "Video: Beating Sidon again https://www.twitch.tv/videos/2328874537 {{play_time:1734415487474}} ({{absolute_time:1734415487474}})", + "Video: Beating Garados https://www.twitch.tv/videos/2329688215 {{play_time:1734423063320}} ({{absolute_time:1734423063320}})", + "Video: Beating Andy https://www.twitch.tv/videos/2329708837 {{play_time:1734463278411}} ({{absolute_time:1734463278411}})", + "Video: Beating Arthur https://www.twitch.tv/videos/2329708838 {{play_time:1734474006249}} ({{absolute_time:1734474006249}})", + "Video: Beating Cold and Hot Wind https://www.twitch.tv/videos/2329720187 {{play_time:1734484449447}} ({{absolute_time:1734484449447}})", + "Video: Beating Dram https://www.twitch.tv/videos/2329728100 {{play_time:1734504077543}} ({{absolute_time:1734504077543}})", + "Video: Beating Clay https://www.twitch.tv/videos/2329728099 {{play_time:1734505579617}} ({{absolute_time:1734505579617}})", + "Video: Beating Undead https://www.twitch.tv/videos/2330529192 {{play_time:1734567041226}} ({{absolute_time:1734567041226}})", + "Video: Beating Jubei https://www.twitch.tv/videos/2330529193 {{play_time:1734569384383}} ({{absolute_time:1734569384383}})", + "Video: Beating Clarken https://www.twitch.tv/videos/2330529191 {{play_time:1734570963786}} ({{absolute_time:1734570963786}})", + "Video: Beating Booth https://www.twitch.tv/videos/2330629305 {{play_time:1734599876551}} ({{absolute_time:1734599876551}})", + "Video: Beating Gara https://www.twitch.tv/videos/2332239874 {{play_time:1734679635679}} ({{absolute_time:1734679635679}})", + "Video: Beating Godem https://www.twitch.tv/videos/2333923077 {{play_time:1734852427266}} ({{absolute_time:1734852427266}})", + "Video: Beating Bio Dram https://www.twitch.tv/videos/2333936100 {{play_time:1734935117959}} ({{absolute_time:1734935117959}})", + "Video: Beating Bio Booth https://www.twitch.tv/videos/2334455456 {{play_time:1734939689927}} ({{absolute_time:1734939689927}})", + "Video: Beating Bio Gara https://www.twitch.tv/videos/2334455452 {{play_time:1734942164910}} ({{absolute_time:1734942164910}})", + "Video: Beating Bio Godem https://www.twitch.tv/videos/2334455451 {{play_time:1734946283379}} ({{absolute_time:1734946283379}})", + "Video: Beating Homncruse 1 https://www.twitch.tv/videos/2334521069 {{play_time:1734978604887}} ({{absolute_time:1734978604887}})", + "Video: Beating Homncruse 2/Credits https://www.twitch.tv/videos/2334521070 {{play_time:1734980983008}} ({{absolute_time:1734980983008}})", + "Current goal: Celebrate! Game was beaten! Congrats to all who participated! Also beat Homncruse again lol" ], "help_message_saving_macros": [ "You can save or edit a macro by using the command !savemacro . Example: !savemacro WalkInCircles Up Right Down Left will save or edit the macro WalkInCircles with the inputs Up Right Down Left, which can then be used later.", @@ -158,6 +224,8 @@ "Used to reply to certain users when they send a message or ping the bot or ping the streamer or ping the channel owner??? This is not implemented yet" ], "unused": [ + "I had issues while backing up files, reloaded to last file\nbacked up on 2024-12-16, I apologize for the inconvenience.", + "Unfortunately I had an issue while backing up save files for Tecmo Secret of The Stars, and in the process the progress made in the last 24 hours was lost, and there is nothing I can do to recover the progress that was lost. I reloaded to the save file from 2024-12-16. I apologize for the inconvenience.", "Kingdom Hearts 2 (starts in {{relative_time:1702771200000}}\n({{absolute_time:1702771200000}}))", "Kingdom Hearts 2 (starts in {{relative_time:1702771200000}} ({{absolute_time:1702771200000}}))", "\n\n!help to learn how to play\n\n{{next_game_title}}\n(starts in {{next_run_start_time}})\nKingdom Hearts 2\n(starts in {{relative_time:1702771200000}}\n({{absolute_time:1702771200000}}))", diff --git a/backend/n64_controller.json b/backend/n64_controller.json index dfda04a..6c82451 100644 --- a/backend/n64_controller.json +++ b/backend/n64_controller.json @@ -20895,6 +20895,8 @@ "input_value": "0x00007F7F00000002L", "input_name": "Wait", "input_alias": [ + "Xtop", + "Xtahp", "Ayop", "Wyop", "Syop", diff --git a/backend/ps2_controller.json b/backend/ps2_controller.json index 3be0389..f8076a3 100644 --- a/backend/ps2_controller.json +++ b/backend/ps2_controller.json @@ -22394,6 +22394,8 @@ "input_value": "0x00007F7F7F7F0002L", "input_name": "Wait", "input_alias": [ + "Xtop", + "Xtahp", "Ayop", "Wyop", "Syop", diff --git a/backend/ps2_controller_digital.json b/backend/ps2_controller_digital.json index 486d483..78edb79 100644 --- a/backend/ps2_controller_digital.json +++ b/backend/ps2_controller_digital.json @@ -22393,6 +22393,8 @@ "input_value": "0x00007F7F7F7F0002L", "input_name": "Wait", "input_alias": [ + "Xtop", + "Xtahp", "Ayop", "Wyop", "Syop", diff --git a/backend/snes_controller.json b/backend/snes_controller.json index 2b7d88d..36cbf8f 100644 --- a/backend/snes_controller.json +++ b/backend/snes_controller.json @@ -20575,6 +20575,8 @@ "input_value": "0x0000000000000002L", "input_name": "Wait", "input_alias": [ + "Xtop", + "Xtahp", "Ayop", "Wyop", "Syop",