Skip to content

Commit

Permalink
Changes for Tecmo Secret of The Stars run end
Browse files Browse the repository at this point in the history
  • Loading branch information
WhatAboutGaming authored Dec 31, 2024
1 parent a6ae75d commit 938b587
Show file tree
Hide file tree
Showing 10 changed files with 101 additions and 11 deletions.
12 changes: 9 additions & 3 deletions backend/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down Expand Up @@ -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] <fafixfan> 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] <fafixfan> 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] <fafixfan> 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] <wumight4> 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] <wumight4> 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, "")),
Expand Down
2 changes: 2 additions & 0 deletions backend/gcn_controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -20672,6 +20672,8 @@
"input_value": "0x00007F7F7F7F0002L",
"input_name": "Wait",
"input_alias": [
"Xtop",
"Xtahp",
"Ayop",
"Wyop",
"Syop",
Expand Down
2 changes: 2 additions & 0 deletions backend/gcn_rvl_sideways_controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -25088,6 +25088,8 @@
"input_value": "0x00007F7F7F7F0002L",
"input_name": "Wait",
"input_alias": [
"Xtop",
"Xtahp",
"Ayop",
"Wyop",
"Syop",
Expand Down
2 changes: 2 additions & 0 deletions backend/gcn_vc_nes_controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -18383,6 +18383,8 @@
"input_value": "0x00007F7F7F7F0002L",
"input_name": "Wait",
"input_alias": [
"Xtop",
"Xtahp",
"Ayop",
"Wyop",
"Syop",
Expand Down
2 changes: 2 additions & 0 deletions backend/gcn_vc_snes_controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -20749,6 +20749,8 @@
"input_value": "0x00007F7F7F7F0002L",
"input_name": "Wait",
"input_alias": [
"Xtop",
"Xtahp",
"Ayop",
"Wyop",
"Syop",
Expand Down
84 changes: 76 additions & 8 deletions backend/global.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -106,24 +106,58 @@
"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,
"notes": "To test server: Set game_title as TEST RUN 0, set stream_title as TEST RUN 1, set next_game_title as TEST RUN 2, set main_database_name as test_database_main, set chatters_collection_name as test_database_chatters, set run_name as test_database_run_name, set global_database_name as test_database_global, set inputter_database_name as test_database_inputters, set macro_database_name as test_database_macro, set run_id as -1",
"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",
"Type !runendgameconditions to see what you have to do\nto beat the game",
"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",
Expand All @@ -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 <macro name> <macro inputs>. 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.",
Expand All @@ -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}}))",
Expand Down
2 changes: 2 additions & 0 deletions backend/n64_controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -20895,6 +20895,8 @@
"input_value": "0x00007F7F00000002L",
"input_name": "Wait",
"input_alias": [
"Xtop",
"Xtahp",
"Ayop",
"Wyop",
"Syop",
Expand Down
2 changes: 2 additions & 0 deletions backend/ps2_controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -22394,6 +22394,8 @@
"input_value": "0x00007F7F7F7F0002L",
"input_name": "Wait",
"input_alias": [
"Xtop",
"Xtahp",
"Ayop",
"Wyop",
"Syop",
Expand Down
2 changes: 2 additions & 0 deletions backend/ps2_controller_digital.json
Original file line number Diff line number Diff line change
Expand Up @@ -22393,6 +22393,8 @@
"input_value": "0x00007F7F7F7F0002L",
"input_name": "Wait",
"input_alias": [
"Xtop",
"Xtahp",
"Ayop",
"Wyop",
"Syop",
Expand Down
2 changes: 2 additions & 0 deletions backend/snes_controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -20575,6 +20575,8 @@
"input_value": "0x0000000000000002L",
"input_name": "Wait",
"input_alias": [
"Xtop",
"Xtahp",
"Ayop",
"Wyop",
"Syop",
Expand Down

0 comments on commit 938b587

Please sign in to comment.