123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- use strict;
- use v5.10;
- AddModuleDescription('emoji.pl', 'Smilies');
- our (%RuleOrder, @MyRules);
- push(@MyRules, \&EmojiRule);
- $RuleOrder{\&EmojiRule} = 150;
- sub EmojiRule {
- if (m/\G:-?D/cg) {
-
- return '😀';
- } elsif (/\G:[-o]?\)/cg) {
-
- return '😊';
- } elsif (/\G\s+:3/cg) {
-
- return ' 😸';
- } elsif (/\G:-?\(/cg) {
-
- return '😟';
- } elsif (/\G;-?\)/cg) {
-
- return '😉';
- } elsif (/\G:'\(/cg) {
-
- return '😢';
- } elsif (/\G>:-?\(/cg) {
-
- return '😠';
- } elsif (/\G:-?[Ppb]/cg) {
-
- return '😝';
- } elsif (/\G<3/cg) {
-
- return '❤';
- } elsif (/\G\^_*\^/cg) {
-
- return '😄';
- } elsif (/\G\b[Oo]_[Oo]\b/cg) {
-
- return '😲';
- } elsif (/\G\\o\//cg) {
-
- return '🙌';
- } elsif (/\G\\m\//cg) {
-
- return '✊';
- }
- return;
- }
|