···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 floorNumStart = 999999;
22 floorNumEnd = 999999;
23 challengeDone = false;
000024});
2526PluginEventEmitter.on("SetRichPresence", async (data: any) => {
···47 if (floorNumStart === 999999) {
48 floorNumStart = f;
49 floorNumEnd = f + numFloors;
000050 exec(
51 `notify-send -a "tuxstrap" -u low "Regretevator" "Challenge: Survive ${
52 floorNumEnd - floorNumStart
···72 // exec(`notify-send -a "tuxstrap" -u low "Regretevator" "Going Up!"`);
73 } else if ((data.state as string) === "Lounging in the lobby") {
74 floorNumEnd += numFloorsDeath;
000075 exec(
76 `notify-send -a "tuxstrap" -u low "Regretevator" "haha im making you do ${numFloorsDeath} more floors >:3"`
77 );
···21 floorNumStart = 999999;
22 floorNumEnd = 999999;
23 challengeDone = false;
24+ console.log(
25+ "[DailyChallenge]",
26+ `Detected OnGameJoin`
27+ );
28});
2930PluginEventEmitter.on("SetRichPresence", async (data: any) => {
···51 if (floorNumStart === 999999) {
52 floorNumStart = f;
53 floorNumEnd = f + numFloors;
54+ console.log(
55+ "[DailyChallenge]",
56+ `Detected Regretevator floor ${floorNumStart}, target floor num: ${floorNumEnd}`
57+ );
58 exec(
59 `notify-send -a "tuxstrap" -u low "Regretevator" "Challenge: Survive ${
60 floorNumEnd - floorNumStart
···80 // exec(`notify-send -a "tuxstrap" -u low "Regretevator" "Going Up!"`);
81 } else if ((data.state as string) === "Lounging in the lobby") {
82 floorNumEnd += numFloorsDeath;
83+ console.log(
84+ "[DailyChallenge]",
85+ `Setting target floor to ${floorNumEnd}`
86+ );
87 exec(
88 `notify-send -a "tuxstrap" -u low "Regretevator" "haha im making you do ${numFloorsDeath} more floors >:3"`
89 );