NAME
Net::Twitter::Antispam::Plugin::Example - an example plugin for Net::Twitter::Antispam that blocks an old twitter tactic
DESCRIPTION
To implement a plugin, you need to decide whether your plugin tests for a user being a spammer or an individual message being spamlike.
There are two predefined method names you can user: is_user_spammy and is_message_spammy.
You need only implement one of these, this module only implements is_user_spammy
Each function should return a percentage value of spam likelihood with 100% being 'definitely spam', 0% being 'definitely not spam' and 50% being 'no clue'.
The results from every module being used will be averaged to guess whether it is spam or not.
INTERFACE
is_user_spammy
receives three arguments: a Net::Twitter::Antispam, a Net::Twitter, and a hashref representing the user that was returned from Net::Twitter.
It is expected to return a percentage spam likelihood.
is_message_spammy
receives three arguments: a Net::Twitter::Antispam, a Net::Twitter, and a copy of the message
It is expected to return a percentage spam likelihood.
FUNCTIONS
is_user_spammy :: (Net::Twitter::Antispam, Net::Twitter, HashRef) => Int
This is a method called automatically by Net::Twitter::Antispam. In this case it combats an old spamming tactic.
SEE ALSO
Net::Twitter::Antispam - The anti-spam system for twitter Net::Twitter - You'll be passed one of these implementing