From a43a788e15ae49497b40a61f43dfbe0e9a9e3e78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Tue, 14 Sep 2021 17:13:17 +0300 Subject: [PATCH] Update play command --- src/client/commands/play.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/client/commands/play.js b/src/client/commands/play.js index 2de1239..52a5a41 100644 --- a/src/client/commands/play.js +++ b/src/client/commands/play.js @@ -128,14 +128,6 @@ module.exports = { client.funcs.play(client, interaction, interaction.guild, station); client.datastore.checkEntry(interaction.guild.id); - construct.currentGuild = client.datastore.getEntry(interaction.guild.id); - - if (!construct.currentGuild.statistics[construct.station.name]) { - construct.currentGuild.statistics[construct.station.name] = {}; - construct.currentGuild.statistics[construct.station.name].time = 0; - construct.currentGuild.statistics[construct.station.name].used = 0; - client.datastore.updateEntry(interaction.guild, construct.currentGuild); - } } catch (error) { console.log(error); client.radio.delete(interaction.guild.id);