Skip to content

Commit

Permalink
yes
Browse files Browse the repository at this point in the history
fixed da proxy, made it change every 5 sec, updated headers 🔥 it was worth waiting 3 weeks for this one
  • Loading branch information
Tips-Discord authored Oct 31, 2024
1 parent f494b46 commit 97b30ba
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions Cwelium.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,17 @@ def run_tasks():
service = Config["Service"].lower()
Key = Config["Api-Key"]

if proxy:
selected_proxy = random.choice(proxies)
session.proxies = {
"http": f"http://{selected_proxy}",
"https": f"http://{selected_proxy}"
}
def change_proxy():
while True:
selected_proxy = random.choice(proxies)
session.proxies = {
"http": f"http://{selected_proxy}",
"https": f"http://{selected_proxy}"
}
time.sleep(5)

proxy_thread = threading.Thread(target=change_proxy, daemon=True)
proxy_thread.start()

class Render:
def __init__(self):
Expand Down Expand Up @@ -511,13 +516,13 @@ def super_properties(self):
"os": "Windows",
"browser": "Discord Client",
"release_channel": "stable",
"client_version": "1.0.9167",
"client_version": "1.0.9168",
"os_version": "10.0.19045",
"system_locale": "en",
"browser_user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) discord/1.0.9167 Chrome/128.0.6613.36 Electron/32.0.0 Safari/537.36",
"browser_user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) discord/1.0.9168 Chrome/128.0.6613.36 Electron/32.0.0 Safari/537.36",
"browser_version": "32.0.0",
"client_build_number": 335184,
"native_build_number": 53601,
"client_build_number": 339221,
"native_build_number": 54039,
"client_event_source": None,
}
properties = base64.b64encode(json.dumps(payload).encode()).decode()
Expand All @@ -533,7 +538,7 @@ def headers(self, token):
"authorization": token,
"cookie": self.cookies,
"content-type": "application/json",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) discord/1.0.9167 Chrome/128.0.6613.36 Electron/32.0.0 Safari/537.36",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) discord/1.0.9168 Chrome/128.0.6613.36 Electron/32.0.0 Safari/537.36",
"x-discord-locale": "en-US",
"x-debug-options": "bugReporterEnabled",
"x-super-properties": self.props,
Expand Down

0 comments on commit 97b30ba

Please sign in to comment.