corrige autovoc

This commit is contained in:
Tutur33
2024-03-21 22:26:11 +01:00
parent d90ab53ae8
commit 6b55072b77
+7
View File
@@ -125,6 +125,13 @@ module.exports = {
setInterval(() => {
db.get('SELECT value FROM config WHERE name = "autovoc"', (err: any, row: any) => {
if (err) {
console.error(err.message);
}
voc = row ? row.value : 'None';
});
if (voc !== 'None') {
const voiceChannel: any = client.channels.cache.get(voc);
if (!voiceChannel) return;