Coder Social home page Coder Social logo

channelchanger's Introduction

ChannelChanger

Discord bot that automatically updates voice channel names based on what games people are playing in it.

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.

Join our Discord server!

Demonstration

Commands

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

Usage

(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!

Self-Hosting

1. Clone this repository

git clone https://github.com/Pigpog/ChannelChanger.git

2. Get the dependencies

In the ChannelChanger folder, run npm i to fetch the dependencies:

cd ChannelChanger
npm i

If you don't have a bot token...

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!

3. Give the bot Intents

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.

4. Put your bot user's token in tokens.json

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.

5. Start the bot!

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.

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.