Hi, I'm Lars, A random guy from Taiwan.
- ๐ฑ I'm currently learning some random stuff.
- ๐ฌ Ask me about anything -->here<--
Discord Temp voice bot, that makes voice channel easy to create, manage, and change regions.
License: MIT License
Hi, I'm Lars, A random guy from Taiwan.
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
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?
It's can automatically change voice ownership when the fast user left the VC the 2nd user get automatically add voice ownership
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.
Hi, i'm always getting
I resetted the token. Edited the config.js
Still getting wrong token message
Maybe you know whats wrong
Originally posted by @C0nvert in #2 (comment)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.