-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgambling.py
52 lines (41 loc) · 1.69 KB
/
gambling.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
import re, json, random, time, zenon, pickle
def obfuscate(byt):
mask = b'keyword'
lmask = len(mask)
return bytes(c ^ mask[i % lmask] for i, c in enumerate(byt))
def on_message():
global last
timesincework = 0
while True:
chatid = "478431088361078787"
message = client.get_message(chatid)
try:
time.sleep(2)
timesincework += 2
if timesincework > 1000:
if random.choice((True, False, False, False, False, False, False)):
client.send_message(chatid, "!work")
time.sleep(0.5)
client.send_message(chatid, "!dep all")
timesincework = 0
if message != last:
print(message)
if "> Withdrew <:" in message:
author = message.split("\"name\": \"")[1]
author = author.split("\"}}],")[0]
if not author.startswith("Caff"):
client.send_message(chatid, "!rob " + author)
time.sleep(5)
resp = random.choice(":)", ":(", ":D", ":0", "yess", "haha", "lol")
client.send_message(chatid, resp)
time.sleep(0.5)
client.send_message(chatid, "!dep all")
last = message
except Exception as e:
print(e)
input("")
if __name__ == '__main__':
last = ""
stupid = obfuscate(b'%!4\r"\x18![+=2\x15?\x1e.P63"\n*?0\x00Y+\x1a\x0f_ \x0eY\x1a\x08"<<\x17\x1b9\x1d4*"\x1e\x1e\x01"1\x01,7<\x07\x136[3I').decode()
client = zenon.Client(stupid)
client.func_loop(on_message)