[Linux-only] basically bloxstap for sober

add readme and fix

+20
+8
README.md
··· 1 + # TuxStrap 2 + Basically Bloxstrap, but for Linux. 3 + 4 + Contains some extra lil features to make playing Roblox a bit more fun. 5 + - Floor Notifs 6 + - Daily 50 floor challenge 7 + - Floor counter (writes to file) 8 + - Copy to clipboard, can be implemented by game.
+12
src/features/regretevator-daily-challenge.ts
··· 21 21 floorNumStart = 999999; 22 22 floorNumEnd = 999999; 23 23 challengeDone = false; 24 + console.log( 25 + "[DailyChallenge]", 26 + `Detected OnGameJoin` 27 + ); 24 28 }); 25 29 26 30 PluginEventEmitter.on("SetRichPresence", async (data: any) => { ··· 47 51 if (floorNumStart === 999999) { 48 52 floorNumStart = f; 49 53 floorNumEnd = f + numFloors; 54 + console.log( 55 + "[DailyChallenge]", 56 + `Detected Regretevator floor ${floorNumStart}, target floor num: ${floorNumEnd}` 57 + ); 50 58 exec( 51 59 `notify-send -a "tuxstrap" -u low "Regretevator" "Challenge: Survive ${ 52 60 floorNumEnd - floorNumStart ··· 72 80 // exec(`notify-send -a "tuxstrap" -u low "Regretevator" "Going Up!"`); 73 81 } else if ((data.state as string) === "Lounging in the lobby") { 74 82 floorNumEnd += numFloorsDeath; 83 + console.log( 84 + "[DailyChallenge]", 85 + `Setting target floor to ${floorNumEnd}` 86 + ); 75 87 exec( 76 88 `notify-send -a "tuxstrap" -u low "Regretevator" "haha im making you do ${numFloorsDeath} more floors >:3"` 77 89 );