changed to vars
This commit is contained in:
parent
52ce2333b0
commit
d96ce5580a
1 changed files with 4 additions and 4 deletions
|
@ -3,10 +3,10 @@ const fs = require('fs');
|
|||
|
||||
// read settings and reactions json files
|
||||
try {
|
||||
const settings = JSON.parse(fs.readFileSync('./settings.json', 'utf8'));
|
||||
const reacts = JSON.parse(fs.readFileSync('./reacts.json', 'utf8'));
|
||||
const commands = JSON.parse(fs.readFileSync('./commands.json', 'utf8'));
|
||||
const mod_commands = JSON.parse(fs.readFileSync('./mod_commands.json', 'utf8'));
|
||||
var settings = JSON.parse(fs.readFileSync('./settings.json', 'utf8'));
|
||||
var reacts = JSON.parse(fs.readFileSync('./reacts.json', 'utf8'));
|
||||
var commands = JSON.parse(fs.readFileSync('./commands.json', 'utf8'));
|
||||
var mod_commands = JSON.parse(fs.readFileSync('./mod_commands.json', 'utf8'));
|
||||
} catch (err) {
|
||||
console.error("An error occured trying to read the files for the Twitch bot: " + err);
|
||||
}
|
||||
|
|
Reference in a new issue