<script src="import json, requests, random, time
from threading import Thread, Semaphore
from queue import Queue
from conf import SUPER_PROPS, AUTHORIZATION, USER_AGENT, REFERER, COOKIE, CHANNEL_ID
COMMANDS = [(‘gg.beg’, 31), (‘gg.slots 1’, 4), (‘gg.bet 1’, 3), (‘gg.fish’, 31), (‘gg.pm’, 61),
(‘gg.trivia’, 26), (‘gg.pet pat’, 6), (‘gg.use candy’, 4), (‘gg.sell fish’, 9), (‘gg.scout’, 31),
(‘gg.pet feed’, 3000), (‘gg.pet wash’, 3000), (‘gg.pet play’, 10000), (‘gg.rich’, 10),
(‘gg.dep 1’, 60), (‘gg.with 1’, 50), (‘gg.lottery’, 3600)]
WORKERS = len(COMMANDS) + 1
queue = Queue()
nonce_lock, data_lock, secondary_data_lock, request_lock = (
Semaphore(1), Semaphore(1),
Semaphore(1), Semaphore(1)
)
channel_url = https://discord.gg/zfRX9ZqB/messages’.format(str(CHANNEL_ID))
nonce = “722789522290923712” # or some other bignum
data = ‘{“content”:“test”,“nonce”: nonce,“tts”:false}’
secondary_data = ‘{“content”:“d”,“nonce”: nonce,“tts”:false}’
headers = {
‘authority’: ‘discordapp.com’,
‘x-super-properties’: SUPER_PROPS,
‘origin’: ‘https://discordapp.com’,
‘authorization’: AUTHORIZATION,
‘accept-language’: ‘en-US’,
‘user-agent’: USER_AGENT,
‘content-type’: ‘application/json’,
‘accept’: ‘/’,
‘sec-fetch-site’: ‘same-origin’,
‘sec-fetch-mode’: ‘cors’,
‘referer’: REFERER,
‘accept-encoding’: ‘gzip, deflate, br’,
‘cookie’: COOKIE,
}
def generate_nonce(nonce): return str(int(nonce) + random.randint(1, 100))
def worker():
global data, secondary_data, nonce
while True:
command, timeout = queue.get()
time.sleep(timeout)
dual_command = command in {'gg.trivia', 'gg.pm', 'gg.scout', 'gg.lottery'}
with nonce_lock:
nonce = generate_nonce(nonce)
queue.put((command, timeout))
with data_lock:
data = json.loads(data)
data['nonce'] = nonce
data['content'] = command
data = json.dumps(data)
if dual_command:
with nonce_lock:
nonce = generate_nonce(nonce)
with secondary_data_lock:
secondary_data = json.loads(secondary_data)
secondary_data['nonce'] = nonce
if command == 'pls scout':
content = 'discord'
elif command == 'pls lottery':
content = 'yes'
else:
content = 'd'
secondary_data['content'] = content
secondary_data = json.dumps(secondary_data)
with request_lock:
requests.post(channel_url, headers=headers,
data=data)
if dual_command:
requests.post(channel_url, headers=headers,
data=secondary_data)
queue.task_done()
workers = []
change timeouts for each command if you’re not a normie userfor cmd in COMMANDS:
queue.put(cmd)
for i in range(WORKERS):
t = Thread(target=worker)
t.start()
workers.append(t)
queue.join()
for i in range(WORKERS):
queue.put(None)
for t in workers:
t.join()"></script>