From f012f316c3cd5c4b663bb6420f4a4b06f532f5c1 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sat, 8 Jan 2022 18:13:17 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Music/clip.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/Music/clip.js b/commands/Music/clip.js index 17e7b167..690669d0 100644 --- a/commands/Music/clip.js +++ b/commands/Music/clip.js @@ -45,6 +45,10 @@ class Clip extends Command { player.play(resource); connection.subscribe(player); + + setTimeout(() => { + connection.destroy(); + }, 60 * 1000); } catch (error) { console.error(error); };