mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-10 05:00:18 +00:00
Prevent loadState function updating datastore entries everytime
This commit is contained in:
parent
dc7b14b11a
commit
57aaf92947
@ -4,6 +4,8 @@ module.exports = function loadState(client, guild){
|
||||
let state;
|
||||
|
||||
state = data.state;
|
||||
if(!state) return;
|
||||
|
||||
data.state = {};
|
||||
client.datastore.updateEntry(guild, data);
|
||||
return state;
|
||||
|
Loading…
Reference in New Issue
Block a user