censor/uncensor

This commit is contained in:
Supositware 2019-02-26 00:23:12 +01:00
parent 31d7eab6ce
commit fcd0438051

View file

@ -29,6 +29,11 @@ class tweetCommand extends Command {
} }
async exec(message, args) { async exec(message, args) {
let censor = reload('../../json/twitter/censor.json');
let uncensor = reload('../../json/twitter/uncensor.json');
filter.addWords(censor);
filter.removeWords(uncensor);
const blacklist = reload('../../json/twiBlacklist.json'); const blacklist = reload('../../json/twiBlacklist.json');
const channel = this.client.channels.get(twiChannel); const channel = this.client.channels.get(twiChannel);