Coder Social home page Coder Social logo

interfacegui / discord-tempvoice-bot Goto Github PK

View Code? Open in Web Editor NEW
16.0 4.0 5.0 146 KB

Discord Temp voice bot, that makes voice channel easy to create, manage, and change regions.

License: MIT License

JavaScript 99.76% Dockerfile 0.24%
discord-bot nodejs tempvc discord discord-voicechannel discordbot discord-interactions temp-voice voice-channel

discord-tempvoice-bot's Introduction

Hi, Lars here! ๐Ÿ‘‹

Hi, I'm Lars, A random guy from Taiwan.

  • ๐ŸŒฑ I'm currently learning some random stuff.
  • ๐Ÿ’ฌ Ask me about anything -->here<--

GitHub Stats ๐Ÿ“ˆ

InterfaceGUI's GitHub stats

Top Langs

NOTE: Top languages does not indicate my skill level or something like that, it's a github metric of which languages i have the most code on github, it's a new feature of github-readme-stats

discord-tempvoice-bot's People

Contributors

interfacegui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

discord-tempvoice-bot's Issues

The punycode module is deprecated in whatwg-url

I get:

Config Loaded prefix: -
(node:12416) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
    at node:punycode:3:9
    at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:397:7)
    at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:333:10)
    at loadBuiltinModule (node:internal/modules/helpers:101:7)
    at Module._load (node:internal/modules/cjs/loader:1001:17)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (C:\Users\Silag\OneDrive\Desktop\Bot\Discord-TempVoice-Bot-master\node_modules\node-fetch\node_modules\whatwg-url\lib\url-state-machine.js:2:18)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
Invalid Token. Make Sure To Fill config.js or set ENV

support role

its is more a question but is it possible to make it so only people with an role that will be lined in the config only can join?

Ownership

It's can automatically change voice ownership when the fast user left the VC the 2nd user get automatically add voice ownership

Hello, i want to ask how to implement this features into this bot

i have question, your bot have features that delete the voice channel if no one in the voice channel or the voice channel master has been disconnect for more than 3 minutes, the question is, if i want the bot to delete the voice channel directly without no cooldown / timer "only" if no one in the voice channel or just a bot in voice channel, how i can do that?

i have the sample written in discord.js v13 but i don't know how to implement that on this bot.

client.on("voiceStateUpdate", async (oldState, newState) => {
  if (oldState.channel) {
    let filtered = (ch) =>
      ch.parent === newState.guild.channels.cache.get(categoryID) &&
      ch.id !== channelID &&
      oldState.channel.id === ch.id &&
      oldState.channel.members.filter((m) => !m.user.bot).size < 1;
    return oldState.guild.channels.cache
      .filter(filtered)
      .forEach(async (ch) => await ch.delete());
  }
});

client.on("voiceStateUpdate", async (oldState, newState) => {
  if (oldState.channel) {
    let filtered = (ch) =>
      ch.parent === newState.guild.channels.cache.get(GameCat) &&
      ch.id !== GameChannelID &&
      oldState.channel.id === ch.id &&
      oldState.channel.members.filter((m) => !m.user.bot).size < 1;
    return oldState.guild.channels.cache
      .filter(filtered)
      .forEach(async (ch) => await ch.delete());
  }
});

sorry for my bad english and thankyou.

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.