PrivateParlorXT::SpamHandler
Inherits YAML::Serializable < Reference < Object
A module used for keeping track of the frequency of a user's message posting in order to prevent spam
Constructors
Instance methods
Returns a hash of UserID to Time, contaning the time each user last downvoted
The limit for spam scores that, when hit, prevents the user from sending another message until it decays
Returns true if the album was spammy
Returns false otherwise
Returns true if the animation was spammy
Returns false otherwise
Returns true if the audio was spammy
Returns false otherwise
Returns true if the contact was spammy
Returns false otherwise
Returns true if the document was spammy
Returns false otherwise
Check if user has downvoted within an interval of time
Returns true if so (user is downvoting too often), false otherwise.
Returns true if the forwarded message was spammy
Returns false otherwise
Returns true if the location was spammy
Returns false otherwise
Returns true if the photo was spammy
Returns false otherwise
Returns true if the poll was spammy
Returns false otherwise
Check if user has signed within an interval of time
Returns true if so (user is sign spamming), false otherwise.
Returns true if the sticker was spammy
Returns false otherwise
Returns true if the text message was spammy
Returns false otherwise
Check if user has upvoted within an interval of time
Returns true if so (user is upvoting too often), false otherwise.
Returns true if the venue was spammy
Returns false otherwise
Returns true if the video was spammy
Returns false otherwise
Returns true if the video note was spammy
Returns false otherwise
Returns true if the voice message was spammy
Returns false otherwise