updated file names
This commit is contained in:
@@ -16,7 +16,7 @@ if (!fs.existsSync('./token.txt')) {
|
||||
console.error('Missing Discord Token, please enter the bot token into the token file');
|
||||
process.exit(1);
|
||||
}
|
||||
const TOKEN = fs.readFileSync('./token').toString();
|
||||
const TOKEN = fs.readFileSync('./token.txt').toString();
|
||||
|
||||
//discord connections
|
||||
CLIENT.on('ready', client => {
|
||||
|
||||
@@ -8,10 +8,10 @@ import * as fs from 'fs';
|
||||
import { emsg, getChannel, getMember, memberIsModThrow, queueInfo, queueInfoBase } from "./util";
|
||||
|
||||
//load queues from file
|
||||
if (!fs.existsSync('./queues'))
|
||||
fs.writeFileSync('./queues', '{}');
|
||||
if (!fs.existsSync('./queues.json'))
|
||||
fs.writeFileSync('./queues.json', '{}');
|
||||
|
||||
const _QUEUE = fs.readFileSync('./queues').toString(),
|
||||
const _QUEUE = fs.readFileSync('./queues.json').toString(),
|
||||
QUEUE = new Map<string, queueInfo>();
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user