Skip to content

Instantly share code, notes, and snippets.

@cwage
Last active June 13, 2016 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cwage/baa2e97b3353de1d2b6c8a73b8bbcb0b to your computer and use it in GitHub Desktop.
Save cwage/baa2e97b3353de1d2b6c8a73b8bbcb0b to your computer and use it in GitHub Desktop.
$ref->{'text'} =~ s/jesus/my penis/gi;
$ref->{'text'} =~ s/prayer/whiskey/gi;
my $text = &descape($ref->{'text'});
return 0 if ($ref->{'user'}->{'screen_name'} =~ /$userfilter/i) || ($ref->{'text'} =~ /$userfilter/i);
return 0 if ($ref->{'text'} =~ /jack.*white/i);
return 0 if ($ref->{'text'} =~ /world.*cup/i);
return 0 if ($ref->{'text'} =~ /google.*fiber/i);
return 0 if ($ref->{'text'} =~ /(rand|ron) paul|Hillary|Clinton|Cruz|Rubio|POTUS|bernie|sanders|trump/i);
return 0 if ($ref->{'text'} =~ /(guns?( control)?)|shooting|shooter|terroris|rifle/i);
return 0 if ($ref->{'text'} =~ /code.*conduct/i);
return 0 if ($ref->{'text'} =~ /vote|voting/i);
return 0 if ($ref->{'text'} =~ / pi /i) || ($ref->{'text'} =~ /PiDay/i);
&defaulthandle($ref);
return 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment