If you want to online tokens in bulk, consider checking out my store: phantom.sellix.io! ☄️
⭐ Feel free to star the repository if this helped you!
By using this code, you are automating your Discord Account. This is against Discord's Terms of Service and Community Guidelines. If not used properly, your account(s) might get suspended or terminated by Discord. I, the developer, am not responsible for any consequences that may arise from the use of this code. Use this software at your own risk and responsibility. Learn more about Discord's Terms of Service and Community Guidelines here.
This repository is in no way affiliated with, authorized, maintained, sponsored, or endorsed by Discord Inc. (discord.com) or any of its affiliates or subsidiaries.
DO NOT GIVE YOUR DISCORD TOKENS TO ANYONE.
Giving your token to someone else will give them the ability to log into your account without the password or 2FA.
- 🔒 Secure
- Supports Custom Status
- Account will stay 24/7 online (if you set it up correctly)
- Supports all three status modes (Online, Idle, Do Not Disturb)
- Can be used almost on any platform that supports Python
The code inside the repository was originally made to be hostable on Replit, but due to a recent ban on all repositories that are against Discord's ToS, you won't be able to import this repository directly to Replit anymore.
- Click here to download the latest version of this code.
- Unzip the file
- Create a new Python repl on Replit
- Upload the files into the repl (Just drag and drop it into the files sidebar)
- Overwrite the files if a prompt pops-up
- Add your token inside Secrets (Guide) with
TOKEN
as the key and your token as the value (Video) - Modify both the status mode and custom status, if you want to make any adjustments
- Run the repl
- Add your repl url to an uptime monitor (Video)
Click here to view the code, and click again to close it
import sys
import json
import time
import requests
import websocket
status = "online"
custom_status = "youtube.com/@SealedSaucer" #If you don't need a custom status on your profile, just put "" instead of "youtube.com/@SealedSaucer"
usertoken = "Add your token here"
headers = {"Authorization": usertoken, "Content-Type": "application/json"}
validate = requests.get('https://discordapp.com/api/v9/users/@me', headers=headers)
if validate.status_code != 200:
print("[ERROR] Your token might be invalid. Please check it again.")
sys.exit()
userinfo = requests.get('https://discordapp.com/api/v9/users/@me', headers=headers).json()
username = userinfo["username"]
discriminator = userinfo["discriminator"]
userid = userinfo["id"]
def onliner(token, status):
ws = websocket.WebSocket()
ws.connect("wss://gateway.discord.gg/?v=9&encoding=json")
start = json.loads(ws.recv())
heartbeat = start["d"]["heartbeat_interval"]
auth = {
"op": 2,
"d": {
"token": token,
"properties": {
"$os": "Windows 10",
"$browser": "Google Chrome",
"$device": "Windows",
},
"presence": {"status": status, "afk": False},
},
"s": None,
"t": None,
}
ws.send(json.dumps(auth))
cstatus = {
"op": 3,
"d": {
"since": 0,
"activities": [
{
"type": 4,
"state": custom_status,
"name": "Custom Status",
"id": "custom",
#Uncomment the below lines if you want an emoji in the status
#"emoji": {
#"name": "emoji name",
#"id": "emoji id",
#"animated": False,
#},
}
],
"status": status,
"afk": False,
},
}
ws.send(json.dumps(cstatus))
online = {"op": 1, "d": "None"}
time.sleep(heartbeat / 1000)
ws.send(json.dumps(online))
def run_onliner():
print(f"Logged in as {username}#{discriminator} ({userid}).")
while True:
onliner(usertoken, status)
time.sleep(30)
run_onliner()
- Create a new Python file and paste the code into it
- Modify both the status mode and custom status, if you want to make any adjustments
- Save the file
- Create a
requirements.txt
file and copy and paste the file contents inside requirements.txt without theFlask
module - Save the file
- Open command prompt where both the files are present and run
pip install -r requirements.txt
- Once the packages are downloaded, either double-click the python file in order to run it or open command prompt where the python file is present and run
python filename.py
Click here to view the explanation and fix
Just wait for a few minutes. It takes some time for Discord to refresh your status.
[Replit] This repository could not be accessed, try again later/This repository possibly violates our Terms of Service. Contact support if you believe this is a mistake.
Click here to view the explanation and fix
As I mentioned before, due to a recent ban on all repositories that are against Discord's ToS, you won't be able to import this repository directly to Replit anymore. Follow this workaround to host the code on Replit.
Click here to view the explanation and fix
You cloned it into a bash repl. Make sure you select "Python" from the languages list when you create the repl.
Click here to view the explanation and fix
This happens because repls have Shared Public IP Addresses, and some Replit Users abuse the platform to spam (through self bots or nukers). Whenever Discord sees lots of invalid requests coming from a single IP address, it will use Cloudflare to temporarily block any incoming requests.
- Go to shell
- Enter
kill 1
- Wait for the repl to reload
- Run the repl again
Click here to view the explanation and fix
Run
pip install websocket
in the shell
[Replit] TypeError: WebSocket.__init() missing 3 required positional arguments: 'environ', 'socket', and 'rfile'
Click here to view the explanation and fix
Run
pip install websocket-client
in the shell
If you have any issues or doubts regarding this, feel free to contact me.
❤️ Online Forever is licensed under GNU General Public License.