mirror of
https://github.com/Myxelium/RandomMemerBot.git
synced 2026-04-23 06:15:09 +00:00
Larger refactoring and added avoidlist
This commit is contained in:
10
helpers/load-avoid-list.ts
Normal file
10
helpers/load-avoid-list.ts
Normal 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'));
|
||||
}
|
||||
Reference in New Issue
Block a user