So uh I have this python code, and it „generates“ an output. (After the if stuff) Im trying to redirect this to a discord channel via a bot or webhook, but everything I tried hasn‘t worked yet. Do you have any idea how to do it?
import threading
import time
import random
# How many threads the program is gonna run | The more threads the more internet and pc resources are needed.
threads = 50
# Determines the ID range that will be scanned - Default is 6000000 - 7800000
minrange = 6000000
maxrange = 7800000
# -----------------------
group_ids = [*range(minrange, maxrange)]
random.shuffle(group_ids)
popped_groups = group_ids
results = open('results.txt', 'w')
results.close()
i = 0
def groupthingy():
current_group = popped_groups.pop()
try:
group = requests.get(
f'https://groups.roblox.com/v1/groups/{current_group}')
json = group.json()
if '"isLocked":true' not in group.text:
if json['owner'] == None:
if json['publicEntryAllowed'] == True:
results = open('results.txt', 'a')
results.write(f"Group: {current_group} is claimable!\n")
results.close()
except Exception:
pass
groupthreads = []
for gk in range(threads):
lt = threading.Thread(target=groupthingy)
groupthreads.append(lt)
lt.start()
time.sleep(0.00000000001)```