This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
103 lines (81 loc) · 2.84 KB
/
main.py
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
from Bot import Bot
import tkinter as tk
from tkinter import *
def execute_bot():
Bot(
username=username.get(),
password=password.get(),
game_name=game_name.get(),
minutes=int(minutes.get()),
history_length=int(history_length.get()),
initial_bet_amount=float(initial_bet_amount.get()),
loss_multiplicator=int(loss_multiplicator.get()),
low_threshold=int(low_threshold.get()),
low_bet_type=low_bet_type.get(),
high_threshold=int(high_threshold.get()),
high_bet_type=high_bet_type.get(),
max_bets=int(max_bets.get()),
headless=headless.get()
).execute()
root = tk.Tk()
root.title("8u.com Bot")
canvas = tk.Canvas(root, width=600, height=300)
# Credentials
Label(root, text="Credentials", font=('Helvetica', 14, 'bold')).grid(row=1, pady=10)
Label(root, text="Username").grid(row=2)
username = Entry(root)
username.grid(row=2, column=1)
Label(root, text="Password").grid(row=3)
password = Entry(root, show="*")
password.grid(row=3, column=1)
# Settings
Label(root, text="Settings", font=('Helvetica', 14, 'bold')).grid(row=4, pady=10)
Label(root, text="game_name").grid(row=5)
game_name = Entry(root)
game_name.grid(row=5, column=1)
game_name.insert(0, "CQK3M")
game_name.configure(state='disabled')
Label(root, text="minutes").grid(row=6)
minutes = Entry(root)
minutes.grid(row=6, column=1)
minutes.insert(0, 3)
minutes.configure(state='disabled')
Label(root, text="history_length").grid(row=7)
history_length = Entry(root)
history_length.grid(row=7, column=1)
history_length.insert(0, 10)
Label(root, text="initial_bet_amount").grid(row=8)
initial_bet_amount = Entry(root)
initial_bet_amount.grid(row=8, column=1)
initial_bet_amount.insert(0, 0.50)
Label(root, text="loss_multiplicator").grid(row=9)
loss_multiplicator = Entry(root)
loss_multiplicator.grid(row=9, column=1)
loss_multiplicator.insert(0, 3)
Label(root, text="low_threshold").grid(row=10)
low_threshold = Entry(root)
low_threshold.grid(row=10, column=1)
low_threshold.insert(0, -10)
Label(root, text="low_bet_type").grid(row=11)
low_bet_type = Entry(root)
low_bet_type.grid(row=11, column=1)
low_bet_type.insert(0, "big")
Label(root, text="high_threshold").grid(row=12)
high_threshold = Entry(root)
high_threshold.grid(row=12, column=1)
high_threshold.insert(0, 10)
Label(root, text="high_bet_type").grid(row=13)
high_bet_type = Entry(root)
high_bet_type.grid(row=13, column=1)
high_bet_type.insert(0, "small")
Label(root, text="max_bets").grid(row=14)
max_bets = Entry(root)
max_bets.grid(row=14, column=1)
max_bets.insert(0, "8")
headless = StringVar(root)
headless.set("false")
Label(root, text="headless").grid(row=15)
option = OptionMenu(root, headless, "true", "false")
option.grid(row=15, column=1)
Button(root, text='Execute', command=execute_bot).grid(row=16, column=1, sticky=W, pady=4)
root.mainloop()