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;