forked from Supositware/Haha-Yes
Removing censor since it is bad
This commit is contained in:
parent
77f296998b
commit
17152adb2f
1 changed files with 6 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
|||
const { Command } = require('discord-akairo');
|
||||
const Twitter = require('twitter-lite');
|
||||
const rand = require('../../rand.js');
|
||||
const Filter = require('bad-words');
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
let filter = new Filter();
|
||||
//const Filter = require('bad-words');
|
||||
//let filter = new Filter();
|
||||
const { twiConsumer, twiConsumerSecret, twiToken, twiTokenSecret, twiChannel } = require('../../config.json');
|
||||
const reload = require('auto-reload');
|
||||
|
||||
|
@ -31,10 +31,12 @@ class tweetCommand extends Command {
|
|||
}
|
||||
|
||||
async exec(message, args) {
|
||||
/*
|
||||
let censor = reload('../../json/censor.json');
|
||||
let uncensor = reload('../../json/uncensor.json');
|
||||
filter.addWords(...censor);
|
||||
filter.removeWords(...uncensor);
|
||||
*/
|
||||
|
||||
const blacklist = reload('../../json/twiBlacklist.json');
|
||||
|
||||
|
@ -47,8 +49,10 @@ class tweetCommand extends Command {
|
|||
if (!text)
|
||||
return;
|
||||
|
||||
/*
|
||||
//Filter out swear word
|
||||
text = filter.clean(text);
|
||||
*/
|
||||
|
||||
text = rand.random(text, message);
|
||||
|
||||
|
|
Loading…
Reference in a new issue