Module: helpers/isBanned

Validates the tweet message looking for illegal words and terms, tossing out any matches it finds as bad tweets.

Parameters:
Name Type Description
tweet object

Twitter message being brought in for evaluation.

Source:
Returns:

If any of the reply checks come back as true then return false otherwise return true that it is a reply.

Type
Boolean

Requires

Methods

(inner) storeWordAndBind(text, badWord) → {Boolean}

Takes a tweet message and an illegal or banned retweet term and then looks to see if there is a match.

Takes a tweet message and an illegal or banned retweet term and then looks to see if there is a match.

Parameters:
Name Type Description
text string

The tweet message to be evaluated.

badWord string

The RegEx string to look for in the tweet.

Source:
Returns:

If the word is bad it returns true, otherwise returns false.

Type
Boolean