diff options
author | David Phillips <david@sighup.nz> | 2017-03-17 10:32:06 +1300 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2017-03-17 10:35:28 +1300 |
commit | 39757ff46ec4ea773f7d41df62e3b98e3a4e73df (patch) | |
tree | 918a48f4378bd29829925835c56f5f1319edc93b | |
parent | c1252b8ffd5eccc000b302948fd52f7a4dd59363 (diff) | |
download | idalius-39757ff46ec4ea773f7d41df62e3b98e3a4e73df.tar.xz |
Integrate sax->🎷 into the generic re->rep config options
-rw-r--r-- | bot.conf.example | 4 | ||||
-rwxr-xr-x | saxrobot | 7 |
2 files changed, 3 insertions, 8 deletions
diff --git a/bot.conf.example b/bot.conf.example index 77d1a8f..ab0de2e 100644 --- a/bot.conf.example +++ b/bot.conf.example @@ -7,5 +7,5 @@ ignore = trumpetbot,abusiveuser password = pleffquiffle admins = snargle!~kleg@glarg.example.com must_id = 1 -re = tr+u, l+e+n+y -rep = 🎺, ( ͡° ͜ʖ ͡°) +re = sa+x, tr+u, l+e+n+y +rep = 🎷, 🎺, ( ͡° ͜ʖ ͡°) @@ -83,12 +83,7 @@ sub irc_public { my $me = $irc->nick_name; - my $saxcount = () = $what =~ /sa+x/gi; - - if ($saxcount > 0) { - $irc->yield(privmsg => $channel => "🎷 " x $saxcount); - } - + # FIXME tidy this loop: do we need $idx? my $idx = 0; for (@{$config{re}}) { my $repcount = () = $what =~ /@{$config{re}}[$idx]/gi; |