- Python 3.5.3+
- discord.py (
pip install discord.py
) - pytz (
pip install pytz
) - psutil (
pip install psutil
) - Requests (
pip install requests
)
- uvloop (
pip install uvloop
) - UNIX ONLY
- Clone the repository:
git clone https://github.com/gregzaal/Auto-Voice-Channels.git
- Go to the directory:
cd Auto-Voice-Channels
- Make folder to store guild settings:
mkdir guilds
- Install pip:
sudo apt-get -y install python3-pip
- Install venv:
pip3 install virtualenv
- Make venv:
python3 -m virtualenv bot-env
- Use venv:
. bot-env/bin/activate
- Install requirements:
python3 -m pip install -r requirements.txt
- Create your application + bot here: https://discordapp.com/developers/applications
- Enable both Presence and Server Members Privileged Gateway Intents in the Bot section.
- Create a
config.json
file in the Auto-Voice-Channels folder and fill it in:admin_id
is your ID, for the bot to DM you when it logs on, joins servers, gets errors, etc.client_id
is the bot ID.log_timezone
is for the time displayed in logs, see this list.token
is your bot's private token you can find here - do not share it with anyone else.- There are a number of optional settings too, which aren't necessary to set but provide some further configuration options if needed.
{
"admin_id":123456789012345678,
"client_id":987654321098765432,
"log_timezone":"Africa/Johannesburg",
"token":"XXXXXXXXXXXXXXXXXXXXXXXX.XXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
- Invite the bot to your own server, replacing
<YOUR BOT ID>
with... your bot ID:https://discordapp.com/api/oauth2/authorize?client_id=<YOUR BOT ID>&permissions=286280784&scope=bot
- Start your bot:
python3 auto-voice-channels.py
For all issues and questions you have, first ask in our Support Server. 99% of questions have been asked before and already have a solution available. Read the FAQ, #status channel, and pinned messages.
If you're self-hosting and have an actual code bug to report, also first check in the Support Server for a solution and see if anyone else has the same problem. If someone can confirm your bug in their own self-hosted bot, then you may open an issue.