Discord bot that automatically updates voice channel names based on what games people are playing in it.
To the extent possible under law,
Pigpog
has waived all copyright and related or neighboring rights to
ChannelChanger.
This work is published from:
Canada.
This project has been discontinued and the following bot users are expected to be terminated in October 2022
Add the bot to your server: First instance (full) | Second instance | Third instance | Testing instance (Rust)
If you're wondering why there are multiple instances, it is because unverified bots can't join more than 100 servers. Discord's verification process requires developers to submit legal photo identification. This is something I will not stand for.
!addvc
Enables the bot for your connected voice channel.
!removevc
Disables the bot for your connected voice channel.
!majority
Sets what percentage of people have to be playing the same game for it to change the name. From 1-100.
!template
Sets the template. Default: !template X - Y
. 'X' represents the original channel name, and 'Y' represents the majority game. If no new template is provided it will reply with the currently set template.
(Note: You and the bot need Manage Channels permission)
- Invite the bot to your server
- Join a voice channel
- Send !addvc to a channel that the bot can see on the same server
- The bot will now automatically rename that voice channel to what game you're playing!
git clone https://github.com/Pigpog/ChannelChanger.git
In the ChannelChanger folder, run npm i
to fetch the dependencies:
cd ChannelChanger
npm i
Visit the Discord Developer Portal and create a new application. Then head to the Bot section of the application, and create your bot user. Click the Reset Token button and copy the generated token (about 60 characters long) for the next step. Don't share this token with anyone!
In your bot's Discord Application settings page, go to the Bot section and enable the Presence Intent, the Server Members Intent, and the Message Content Intent. These are required for the bot to access the data it needs to function.
Open the tokens.json file in a text editor.
Remove the placeholder text that says Your token here
, and paste your token between the two quotation marks.
Save the file.
Start the bot by running this command in the ChannelChanger project folder:
node channelchanger.js
It should show how many channels are in the database and how many servers the bot user is in.
This is the command to run every time you want to start the bot.