Add database

This commit is contained in:
Myx
2024-05-12 19:44:36 +02:00
parent 99b1ee39df
commit 1d6f9c3fb2
23 changed files with 112 additions and 67 deletions

10
helpers/loadAvoidList.ts Normal file
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'));
}