mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 09:53:18 +00:00
Update play command
This commit is contained in:
parent
2892913caa
commit
a43a788e15
@ -128,14 +128,6 @@ module.exports = {
|
|||||||
client.funcs.play(client, interaction, interaction.guild, station);
|
client.funcs.play(client, interaction, interaction.guild, station);
|
||||||
|
|
||||||
client.datastore.checkEntry(interaction.guild.id);
|
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) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
client.radio.delete(interaction.guild.id);
|
client.radio.delete(interaction.guild.id);
|
||||||
|
Loading…
Reference in New Issue
Block a user