Create timers.json if it doesn't exist
This commit is contained in:
parent
04f39582a4
commit
879c27b799
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,9 @@ const createInitialConfig = require("./util/createInitialConfig")
|
|||
if(!fs.existsSync("./data/config.json")) {
|
||||
createInitialConfig();
|
||||
}
|
||||
if(!fs.existsSync("./data/timers.json")){
|
||||
fs.writeFileSync('./data/timers.json', "[]");
|
||||
}
|
||||
const Discord = require('discord.js');
|
||||
const client = new Discord.Client({ intents: [Discord.Intents.FLAGS.GUILDS, Discord.Intents.FLAGS.GUILD_MESSAGES, Discord.Intents.FLAGS.GUILD_PRESENCES] });
|
||||
const {
|
||||
|
|
Loading…
Add table
Reference in a new issue