parent
501a78b7c9
commit
8df6244363
2 changed files with 10 additions and 2 deletions
|
@ -23,7 +23,12 @@ client.settings = new Discord.Collection();
|
|||
client.commands = new Discord.Collection();
|
||||
client.serverPrefixes = new Discord.Collection();
|
||||
client.netmodules = new Discord.Collection();
|
||||
client.timers = require('./data/timers.json')
|
||||
client.timers = require('./data/timers.json');
|
||||
|
||||
if(!fs.existsSync("./data/lastTimerID.txt")){
|
||||
fs.writeFileSync('./data/lastTimerID.txt', "0");
|
||||
}
|
||||
client.lastTimerID = parseInt(fs.readFileSync('./data/lastTimerID.txt', 'utf8'));
|
||||
|
||||
client.settings.set("presenceType", presenceType);
|
||||
client.settings.set("presenceText", presenceText);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue