updated file names

This commit is contained in:
2022-02-07 14:39:05 -06:00
parent 81ea71328a
commit 148d93aaab
4 changed files with 225 additions and 197 deletions

View File

@@ -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 => {

View File

@@ -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 {