Update play command

This commit is contained in:
Christer Warén 2021-09-14 17:13:17 +03:00
parent 2892913caa
commit a43a788e15

View File

@ -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);