Public
Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { blob } from "https://esm.town/v/std/blob";
import BetSession from "npm:auto-bet-session@1.0.7";
import axios from "npm:axios";
const TARGET = 1000 * 10;
async function loop() {
var url = "https://cyrilos-loop.web.val.run";
await axios({
method: "get",
url: url,
});
}
/* bet session */
async function playDice() {
const PLATFORM = "maticpick.io";
const cookies = await blob.getJSON("platforms");
const COOKIES = cookies.maticpick.cookies;
var session = new BetSession(PLATFORM, COOKIES);
/* dogepick strategy */
session.onWin(() => {
if (session.currentProfit >= TARGET) {
session.resetBetAmount();
session.stopAutoBet();
session.currentProfit = 0;
loop();
}
});
session.onLoss(() => {
session.increaseBetAmount(70);
// if (session.lossStreak >= 3)
// session.switchOverUnder();
if (session.currentBalance <= -3000000) {
session.stopAutoBet();
loop();
}
});
session.onBet(() => {
// session.switchOverUnder();
console.log(`${session.count}- profit: ${session.currentProfit} | balance ${session.currentBalance}`);
});
/* auto play */
await session.autoBet(0.00001, 1.4);
}
export default async (req) => {
await playDice();
Response.json("Game done");
};
// playDice();
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
September 8, 2024