From 3d453a06bd20beb7031005a00e1964043162fbda Mon Sep 17 00:00:00 2001 From: CringeJan Date: Sat, 28 Nov 2020 13:58:15 +0000 Subject: [PATCH] Delete 'vibechat.js' --- vibechat.js | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 vibechat.js diff --git a/vibechat.js b/vibechat.js deleted file mode 100644 index 4ee8e3f..0000000 --- a/vibechat.js +++ /dev/null @@ -1,21 +0,0 @@ -const Discord = require('discord.js'); -const client = require('./index').client; - -const TCID = '737698514209079377'; -const VCID = '700734003174703265'; - -const TC = client.channels.cache.get(TCID); -const VC = client.channels.cache.get(VCID); - -client.on('voiceStateUpdate', (oldMember, newMember) => { - if (oldMember.channelID == newMember.channelID) return; - if (newMember.member.hasPermission('ADMINISTRATOR')) return; - if (newMember.channelID == VCID) { - TC.createOverwrite(newMember.member, { - VIEW_CHANNEL: true - } - , 'Does anyone even read this?'); - } else if (newMember.channelID != VCID && oldMember.channelID == VCID) { - TC.permissionOverwrites.get(oldMember.id).delete('Does anyone even read this?').catch(); - } -}); \ No newline at end of file