mirror of
https://github.com/Myxelium/RandomMemerBot.git
synced 2026-04-09 08:59:39 +00:00
10 lines
316 B
TypeScript
10 lines
316 B
TypeScript
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'));
|
|
} |