Skip to content

SunilBoopalan/Voicecord

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voicecord

Make your Discord Account Online 24/7 on Voice Channels!


A Code written in Python that helps you to keep your account 24/7 on Voice Channels.

Installation

• Fork the repo

• Clone it to replit

• Install the Self-Bot Package : pip install discord.py-self

• Install PyNaCl using the Package Manager

I would really suggest you to watch this video before installing.


The main.py is the main file. keep_alive.py prevents your repl from going to sleep. (If you have a replit hacker plan, then you can delete this file and paste this code inside the main.py file :


import discord
import os
from discord.ext import commands

class Music(commands.Cog):
    def __init__(self, bot):
        self.bot = bot

    @commands.command()
    async def join(self, ctx, *, channel: discord.VoiceChannel):
        if ctx.voice_client is not None:
            return await ctx.voice_client.move_to(channel)
        await channel.connect()

    @commands.command()
    async def leave(self, ctx):
        await ctx.voice_client.disconnect()

bot = commands.Bot(command_prefix=("&"))

@bot.event
async def on_ready():
    print('Logged in as {0} ({0.id})'.format(bot.user))

bot.add_cog(Music(bot))
bot.run(os.getenv("TOKEN"))

This Code is from this tutorial. If you have any doubts regarding this, feel free to contact me.

DO NOT GIVE YOUR TOKEN TO OTHERS!

Use uptimerobot.com to make your repl online 24/7.


⭐ Feel free to Star the Repository if this helped you! ;)


Voicecord © 2021 by SealedSaucer is licensed under Attribution 4.0 International

About

A Code that can make your Discord Account 24/7 on Voice Channels!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%