GithubHelp home page GithubHelp logo

zs1l3nt / ts-discord-vcsessions Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 209 KB

Discord bot to create a new VC in "Voice Channels" when user joins "New Session" VC. Bot also deletes the channels after everyone leaves

License: GNU General Public License v3.0

TypeScript 100.00%
typescript deprecated discord nodejs

ts-discord-vcsessions's Introduction

VC Sessions

License Languages Top Language Commit Activity Last commit

VC Sessions is a Discord Bot meant to create a new Voice Channel (VC) every single time a user joins the Session Creator Channel (SCC). This SCC should be named something like New Session. When a user joins New Session, a new VC will be generated and the user will be moved to the new VC. The new VC is called a Session and each Session will be automatically cleared when unused.

VC Sessions is built upon Nova Bot, my Discord bot framework. This bot has been shut down due to it's low user usage.

Features

  • Unique Session names
    • Every time a new Session is created, if a VC with the name of ➤ 1 doesn't exist, VC Sessions will create a new Session with ➤ 1 as it's name
    • If a voice channel with the name of ➤ 1 exists, ➤ 2 will be created
  • Prevent spam creation of VCs
    • Whenever a user joins the SCC, VC Sessions will check if there are any empty Sessions in the server that are waiting to be destroyed. If there are, VC Sessions will not create a new VC but instead move the user into the existing Session.
  • Discord Commands (Interactions)
    • Admin
      • /set session-creator-channel - Designates an existing voice channel to be the SCC.
      • /set timeout - Sets the timeout for how long VC Sessions will wait before destroying a Session after all users leave

Usage

Copy the config.example.json file to config.json then fill in the json file with the correct project credentials.

With yarn

$ yarn
$ yarn dev

With npm

$ npm i
$ npm run dev

Built with

  • TypeScript
    • @types/node
    • typescript
  • DiscordJS
    • discord.js
  • Miscellaneous
    • colors
    • nova-bot
    • tracer

ts-discord-vcsessions's People

Contributors

zs1l3nt avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.