GithubHelp home page GithubHelp logo

sealedsaucer / voicecord Goto Github PK

View Code? Open in Web Editor NEW
571.0 3.0 319.0 55 KB

Make Your Discord Account 24/7 On Voice Channels!

Home Page: https://www.youtube.com/watch?v=u9P2K2pNNJQ

License: GNU General Public License v3.0

Python 100.00%
python py discord discord-bot discord-self-bot discord-selfbot discord-account discord-accounts dpy discord-python

voicecord's Introduction

Voicecord

Make Your Discord Account 24/7 On Voice Channels!



If you want to connect tokens to a voice channel in bulk, consider checking out my store: phantom.sellix.io! ☄️
⭐ Feel free to star the repository if this helped you!

Disclaimer

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, is 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.

Warning

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.

Features:

  • 🔒 Secure
  • Supports Stage Channels
  • Account will stay 24/7 online and connected (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

Installation

· Replit

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.

Here's a workaround to solve that issue:

  1. Click here to download the latest version of this code.
  2. Unzip the file
  3. Create a new Python repl on Replit
  4. Upload the files into the repl (Just drag and drop it into the files sidebar)
  5. Overwrite the files if a prompt pops-up
  6. Add your token inside Secrets (Guide) with TOKEN as the key and your token as the value (Video)
  7. Add your Guild (Server) ID and Channel ID
  8. Modify the status mode or mute/deaf option (True or False), if you want to make any adjustments
  9. Run the repl
  10. Add your repl url to an uptime monitor (Video)

· Local Installation

  1. Install Python on your machine (Make sure you add it to PATH)
  2. Copy the code below
Click here to view the code, click again to close it
import sys
import json
import time
import requests
import websocket

status = "online"

GUILD_ID = ADD_YOUR_SERVER_ID_HERE
CHANNEL_ID = ADD_YOUR_CHANNEL_ID_HERE
SELF_MUTE = True
SELF_DEAF = False

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 joiner(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}
    vc = {"op": 4,"d": {"guild_id": GUILD_ID,"channel_id": CHANNEL_ID,"self_mute": SELF_MUTE,"self_deaf": SELF_DEAF}}
    ws.send(json.dumps(auth))
    ws.send(json.dumps(vc))
    time.sleep(heartbeat / 1000)
    ws.send(json.dumps({"op": 1,"d": None}))

def run_joiner():
  print(f"Logged in as {username}#{discriminator} ({userid}).")
  while True:
    joiner(usertoken, status)
    time.sleep(30)

run_joiner()
  1. Create a new Python file and paste the code into it
  2. Add your Guild (Server) ID and Channel ID
  3. Modify the status mode or mute/deaf option (True or False), if you want to make any adjustments
  4. Save the file
  5. Create a requirements.txt file and copy paste the file contents inside requirements.txt without the Flask module
  6. Save the file
  7. Open command prompt where both the files are present and run pip install -r requirements.txt
  8. Once the packages are downloaded, either double click the python file inorder to run it or open command prompt where the python file is present and run python filename.py

Known Errors And How To Fix Them

[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.

[Replit] sh: line 1: python3: command not found

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.

[Replit] Cloudflare Error/Temporarily banned from accessing Discord's API

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 selfbots or nukers). Whenever Discord sees lots of invalid requests coming from a single IP address, they will use Cloudflare to temporarily block any incoming requests.

Fix:

  • Go to shell
  • Enter kill 1
  • Wait for the repl to reload
  • Run the repl again

[Replit] ModuleNotFoundError: No module named 'websocket'

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

Help and Support

If you have any issues or doubts regarding this, feel free to contact me.


❤️ Voicecord is licensed under GNU General Public License.

voicecord's People

Contributors

sealedsaucer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

voicecord's Issues

Error

Traceback (most recent call last):
File "main.py", line 19, in
client.run(os.getenv("TOKEN"))
File "/home/runner/Voicecord/venv/lib/python3.8/site-packages/discord/client.py", line 742, in run
asyncio.run(runner())
File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/runner/Voicecord/venv/lib/python3.8/site-packages/discord/client.py", line 739, in runner
await self.start(*args, **kwargs)
File "/home/runner/Voicecord/venv/lib/python3.8/site-packages/discord/client.py", line 712, in start
await self.login(token)
File "/home/runner/Voicecord/venv/lib/python3.8/site-packages/discord/client.py", line 583, in login
data = await state.http.static_login(token.strip())
File "/home/runner/Voicecord/venv/lib/python3.8/site-packages/discord/http.py", line 663, in static_login
data = await self.get_me()
File "/home/runner/Voicecord/venv/lib/python3.8/site-packages/discord/http.py", line 541, in request
raise HTTPException(response, data)
discord.errors.HTTPException: 429 Too Many Requests (error code: 0):

<title>Access denied | discord.com used Cloudflare to restrict access</title> <script> (function(){if(document.addEventListener&&window.XMLHttpRequest&&JSON&&JSON.stringify){var e=function(a){var c=document.getElementById("error-feedback-survey"),d=document.getElementById("error-feedback-success"),b=new XMLHttpRequest;a={event:"feedback clicked",properties:{errorCode:1015,helpful:a,version:1}};b.open("POST","https://sparrow.cloudflare.com/api/v1/event");b.setRequestHeader("Content-Type","application/json");b.setRequestHeader("Sparrow-Source-Key","c771f0e4b54944bebf4261d44bd79a1e"); b.send(JSON.stringify(a));c.classList.add("feedback-hidden");d.classList.remove("feedback-hidden")};document.addEventListener("DOMContentLoaded",function(){var a=document.getElementById("error-feedback"),c=document.getElementById("feedback-button-yes"),d=document.getElementById("feedback-button-no");"classList"in a&&(a.classList.remove("feedback-hidden"),c.addEventListener("click",function(){e(!0)}),d.addEventListener("click",function(){e(!1)}))})}})(); </script> <script defer src="https://performance.radar.cloudflare.com/beacon.js"></script>

Error 1015

Ray ID: 776c819eae26c36c • 2022-12-09 08:52:43 UTC

You are being rate limited

  <section class="w-240 lg:w-full mx-auto mb-8 lg:px-8">
      <div id="what-happened-section" class="w-1/2 md:w-full">
        <h2 class="text-3xl leading-tight font-normal mb-4 text-black-dark antialiased" data-translate="what_happened">What happened?</h2>
        <p>The owner of this website (discord.com) has banned you temporarily from accessing this website.</p>
        
      </div>

      
  </section>

  <div class="feedback-hidden py-8 text-center" id="error-feedback">
<div id="error-feedback-survey" class="footer-line-wrapper">
    Was this page helpful?
    <button class="border border-solid bg-white cf-button cursor-pointer ml-4 px-4 py-2 rounded" id="feedback-button-yes" type="button">Yes</button>
    <button class="border border-solid bg-white cf-button cursor-pointer ml-4 px-4 py-2 rounded" id="feedback-button-no" type="button">No</button>
</div>
<div class="feedback-success feedback-hidden" id="error-feedback-success">
    Thank you for your feedback!
</div>
  <div class="cf-error-footer cf-wrapper w-240 lg:w-full py-10 sm:py-4 sm:px-8 mx-auto text-center sm:text-left border-solid border-0 border-t border-gray-300">

Cloudflare Ray ID: 776c819eae26c36c Your IP: Click to reveal 34.168.219.25 Performance & security by Cloudflare

<script>(function(){function d(){var b=a.getElementById("cf-footer-item-ip"),c=a.getElementById("cf-footer-ip-reveal");b&&"classList"in b&&(b.classList.remove("hidden"),c.addEventListener("click",function(){c.classList.add("hidden");a.getElementById("cf-footer-ip").classList.remove("hidden")}))}var a=document;document.addEventListener&&a.addEventListener("DOMContentLoaded",d)})();</script>
</div><!-- /#cf-error-details -->
<script> window._cf_translation = {}; </script> <script>(function(){var js = "window['__CF$cv$params']={r:'776c819eae26c36c',m:'fGbkpYkU9U76GQuzeADLNAfSpWqSTr.N6i4kQMXZIVQ-1670575963-0-AdePqP+UbGIMmZ/1wEz4y00zNKfUWWRTVmybwWigBu0LuFn3kRZKzxma/PN60ub2QSgpeOiJZhlBVSs9rch5pDXRcfXhvrTDsHz75iqyAjgTilJc49NgfWequsK4AMd2dWI0tA7NpvO7WcP0s6UCnlRuwKqaKTljvFIfFlWkV4Od',s:[0xab9ada0091,0x0dbe19ca11],u:'/cdn-cgi/challenge-platform/h/b'};var now=Date.now()/1000,offset=14400,ts=''+(Math.floor(now)-Math.floor(now%offset)),_cpo=document.createElement('script');_cpo.nonce='',_cpo.src='/cdn-cgi/challenge-platform/h/b/scripts/alpha/invisible.js?ts='+ts,document.getElementsByTagName('head')[0].appendChild(_cpo);";var _0xh = document.createElement('iframe');_0xh.height = 1;_0xh.width = 1;_0xh.style.position = 'absolute';_0xh.style.top = 0;_0xh.style.left = 0;_0xh.style.border = 'none';_0xh.style.visibility = 'hidden';document.body.appendChild(_0xh);function handler() {var _0xi = _0xh.contentDocument || _0xh.contentWindow.document;if (_0xi) {var _0xj = _0xi.createElement('script');_0xj.nonce = '';_0xj.innerHTML = js;_0xi.getElementsByTagName('head')[0].appendChild(_0xj);}}if (document.readyState !== 'loading') {handler();} else if (window.addEventListener) {document.addEventListener('DOMContentLoaded', handler);} else {var prev = document.onreadystatechange || function () {};document.onreadystatechange = function (e) {prev(e);if (document.readyState !== 'loading') {document.onreadystatechange = prev;handler();}};}})();</script>

Keep Alive Problem

So, I have a little problem with my keep alive because it doesnt give me a URL to make it 24/7 online it says Extranal Page and i cant copy it is there a solution?

Yours

main.py fails to run on replit

After importing the repository, adding in the token, discord guild and channel IDs and manually joining with the account and trying to run the code in replit, the following error message is displayed and the execution stops

Traceback (most recent call last):
  File "main.py", line 6, in <module>
    client=commands.Bot(command_prefix=':', self_bot=True, help_command=None)
TypeError: __init__() missing 1 required keyword-only argument: 'intents'

Error: prybar-python310 not found in $PATH

Everytime I run it this error appears. I use replit to run it.

Error: prybar-python310 not found in $PATH
repl process died unexpectedly: exit status 1
Error: prybar-python310 not found in $PATH
repl process died unexpectedly: exit status 1
Error: prybar-python310 not found in $PATH
repl process died unexpectedly: exit status 1
Error: prybar-python310 not found in $PATH
repl process died unexpectedly: exit status 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.