Larger refactoring and added avoidlist

This commit is contained in:
Myx
2023-10-21 05:09:38 +02:00
parent ccf7a218fd
commit 8fd3eeae03
30 changed files with 753 additions and 213 deletions

View File

@@ -0,0 +1,10 @@
import * as fileSystem from 'fs';
import { AvoidList } from '../models/avoid-list';
/**
* Returns a list of users that the bot should avoid being in same channel as.
* @returns avoidList
*/
export function loadAvoidList(): AvoidList {
return JSON.parse(fileSystem.readFileSync("avoid-list.json", 'utf-8'));
}