From ddb85f10d874aaef2463189beb398d07e352b2ad Mon Sep 17 00:00:00 2001 From: moriese Date: Mon, 13 Jan 2025 01:55:47 +0100 Subject: [PATCH] bug fixed --- mydb.sqlite | 0 src/controllers/discord.controller.ts | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 mydb.sqlite diff --git a/mydb.sqlite b/mydb.sqlite new file mode 100644 index 0000000..e69de29 diff --git a/src/controllers/discord.controller.ts b/src/controllers/discord.controller.ts index 245729f..e5a9166 100644 --- a/src/controllers/discord.controller.ts +++ b/src/controllers/discord.controller.ts @@ -72,7 +72,7 @@ export default class DiscordController extends EventEmitter { client.on(Events.VoiceStateUpdate, async (oldState: VoiceState, newState: VoiceState) => { // check if user joined a vc - if (!oldState.channelId && newState.channelId) { + if (!oldState.channelId && newState.channelId || oldState.channelId != newState.channelId) { // check if right vc if (newState.channelId === config.discord.vchannelIdForTwo || newState.channelId === config.discord.vchannelIdForThree || newState.channelId === config.discord.vchannelIdForFour || newState.channelId === config.discord.vchannelIdForGroup) { const channel = newState.channel;