{"id":22576460,"url":"https://github.com/localhost-four/online-self","last_synced_at":"2025-07-26T12:34:02.943Z","repository":{"id":236757199,"uuid":"793095766","full_name":"localhost-four/Online-self","owner":"localhost-four","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-28T12:25:09.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T15:53:53.476Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/localhost-four.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-28T12:14:43.000Z","updated_at":"2024-04-28T12:25:11.000Z","dependencies_parsed_at":"2024-04-28T13:29:41.775Z","dependency_job_id":"181bbe9d-c89e-44d7-bf51-d06a19b73f71","html_url":"https://github.com/localhost-four/Online-self","commit_stats":null,"previous_names":["localhost-four/online-self"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localhost-four%2FOnline-self","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localhost-four%2FOnline-self/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localhost-four%2FOnline-self/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localhost-four%2FOnline-self/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/localhost-four","download_url":"https://codeload.github.com/localhost-four/Online-self/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246057604,"owners_count":20716957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-08T04:07:01.456Z","updated_at":"2025-03-28T15:44:03.929Z","avatar_url":"https://github.com/localhost-four.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv id=\"SealedSaucer\" align=\"center\"\u003e\n    \u003ch1\u003eOnline Self\u003c/h1\u003e\n    \u003cp\u003eMake Your Discord Account 24/7 Online!\u003c/p\u003e\n    \u003cbr\u003e\n    \u003cimg src=\"https://i.imgur.com/N61T21L.png\" height=\"210\"\u003e\n\u003c/div\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\n\u003cbr\u003e\n\n## Warning\n**DO \u003cins\u003eNOT\u003c/ins\u003e GIVE YOUR DISCORD TOKENS TO ANYONE.**\n#### Giving your token to someone else will give them the ability to log into your account without the password or 2FA.\n\n## Features\n- 🔒 Secure\n- Supports Custom Status\n- Account will stay 24/7 online (if you set it up correctly)\n- Supports all three status modes (Online, Idle, Do Not Disturb)\n- Can be used almost on any platform that supports [Python](https://python.org)\n\n## Obtaining Your Token \nYou will need an user token inorder to use this code. You can obtain it by doing the following:\n1. Logging in to your discord account\n2. Pressing `Ctrl+Shift+I` to open Chrome Developer Tools\n3. Go to the `Network` Tab\n4. Keep it open and refresh the page\n5. Type `/api` in the filter search box\n6. Click the entry that has `science` as the `Name`\n7. On the sub-menu, go to `Headers`\n8. Scroll down till you see an entry named `Authorization`. Copy the line next to it.\n9. This is your token, \u003cins\u003e**DO NOT GIVE IT TO ANYONE**\u003c/ins\u003e.\n\n## Installation\n### · Replit\n#### The code inside the repository was originally made to be hostable on [Replit](https://replit.com), 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.\n#### Here's a workaround to solve that issue:\n1. download the latest version of this code.\n2. Unzip the file\n3. Create a new Python repl on [Replit](https://replit.com)\n4. Upload the files into the repl (Just drag and drop it into the files sidebar)\n5. Overwrite the files if a prompt pops-up\n6. Add your token inside Secrets with `TOKEN` as the key and your token as the value\n7. Modify both the status mode and custom status, if you want to make any adjustments\n8. Run the repl\n\n### · Local Installation\n1. Install [Python](https://python.org/downloads) on your machine \n2. Copy the code below\n\u003cdetails\u003e\n\u003csummary\u003e Click here to view the code, and click again to close it\u003c/summary\u003e\n\u003cbr\u003e\n\n\u003c/details\u003e\n\n3. Create a new Python file and paste the code into it\n4. Modify both the status mode and custom status, if you want to make any adjustments\n5. Save the file\n6. Create a `requirements.txt` file and copy and paste the file contents inside [requirements.txt](https://github.com/SealedSaucer/Online-Forever/blob/main/requirements.txt) without the `Flask` module\n7. Save the file\n8. Open command prompt where both the files are present and run `pip install -r requirements.txt`\n9. 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`\n\n## Known Errors And How To Fix Them\n### [Discord] Status mode not changing\n\u003cdetails\u003e\n\u003csummary\u003eClick here to view the explanation and fix\u003c/summary\u003e\n\u003cbr\u003e\nJust wait for a few minutes. It takes some time for Discord to refresh your status.\n\u003c/details\u003e\n\n### [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.\n\u003cdetails\u003e\n\u003csummary\u003eClick here to view the explanation and fix\u003c/summary\u003e\n\u003cbr\u003e\nAs 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. \n\u003c/details\u003e\n\n### [Replit] sh: line 1: python3: command not found\n\u003cdetails\u003e\n\u003csummary\u003eClick here to view the explanation and fix\u003c/summary\u003e\n\u003cbr\u003e\nYou cloned it into a bash repl. Make sure you select \"Python\" from the languages list when you create the repl.\n\u003c/details\u003e\n\n### [Replit] Cloudflare Error/Temporarily banned from accessing Discord's API\n\u003cdetails\u003e\n\u003csummary\u003eClick here to view the explanation and fix\u003c/summary\u003e\n\u003cbr\u003e\nThis 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.\n\n#### Fix:\n- Go to shell\n- Enter \u003ccode\u003ekill 1\u003c/code\u003e\n- Wait for the repl to reload\n- Run the repl again\n\u003c/details\u003e\n\n### [Replit] ModuleNotFoundError: No module named 'websocket'\n\u003cdetails\u003e\n\u003csummary\u003eClick here to view the explanation and fix\u003c/summary\u003e\n\u003cbr\u003e\nRun \u003ccode\u003epip install websocket\u003c/code\u003e in the shell\n\u003c/details\u003e\n\n### [Replit] TypeError: WebSocket.__init() missing 3 required positional arguments: 'environ', 'socket', and 'rfile'\n\u003cdetails\u003e\n\u003csummary\u003eClick here to view the explanation and fix\u003c/summary\u003e\n\u003cbr\u003e\nRun \u003ccode\u003epip install websocket-client\u003c/code\u003e in the shell\n\u003c/details\u003e\n\n---\n\n\u003cp align=\"center\"\u003e❤️ Online Forever is licensed under GNU General Public License.\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalhost-four%2Fonline-self","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flocalhost-four%2Fonline-self","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalhost-four%2Fonline-self/lists"}