marvvin

IRC bot
Log | Files | Refs | README | LICENSE

commit 1cf79173c91c597dba09e8c59d2b81755ef88278
parent bdbdf781fafd15e8ee39f408a583f2cf5b282d25
Author: hhvn <dev@hhvn.uk>
Date:   Wed, 13 Oct 2021 15:44:35 +0100

filters.sh: remove annoying filters

Diffstat:
Mfilters.sh | 13+++----------
1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/filters.sh b/filters.sh @@ -157,12 +157,6 @@ stupid(){ ) } -weather(){ - set -- $(head -n 1) - shift 2 - curl "wttr.in?0FqQ/$@" | prepl_msg -} - sand(){ islocked sand && return lock sand 240 @@ -186,7 +180,7 @@ topic(){ echo "$NICK: topic function locked temporarily" | prepl_msg return } - lock topic 2400 + lock topic 5 send_raw "TOPIC #hlircnet :--== #HLIRCnet ==-- ::: --== gopher://hlirc.net/0/metachannel.txt ==-- ::: --== <$NICK> $(head -n 1 /dev/stdin | sed 's/^[^ ]* [^ ]* //') ==--" } @@ -199,20 +193,19 @@ calc(){ match_motd send_join "#hlircnet" match_motd send_join "#test" -match_msg "^($nick[:,] |)(good |)(hi|hello|greetings|sup|morning|afternoon|evening|day)(.*$nick.*|)$" greet +# match_msg "^($nick[:,] |)(good |)(hi|hello|greetings|sup|morning|afternoon|evening|day)(.*$nick.*|)$" greet match_msg "^(dumb|stupid|retard|useless|pointless).*(bot|$nick)" stupid match_action "(slaps|smacks|whacks|hits|strikes|punches|shoots|stabs|wounds) $nick" oww match_action "(gives|passes|hands).*$nick.*(blunt|bong|joint)" weed match_action "(gives|passes|hands).*$nick.*job" job match_action "(gives|passes|hands).*$nick.*(food|cookie|biscuit|leftovers|dinner|scraps)" food -match_msg "^$nick[:,] (wttr|weather)" weather match_msg "^$nick[:,] say" say match_msg "^$nick[:,] topic" topic match_msg "^$nick[:,] (calc|bc)" calc match_msg "^$nick[:,] good |)night(.*$nick.*|)$" night match_msg "^$nick[,:] ($(ls bin/ | tr '\n' '|' | sed 's/|$//g'))" bin match_msg "^$nick[,:] (sudo|doas) ($(ls bin/ | tr '\n' '|' | sed 's/|$//g'))" binsu -match_msg "^poo*p" sand +match_msg "^pooo*p" sand match_msg "http[s]*://.*" url_title # match_msg "^(lul|lol|hah|hehe|heh|haha).*wut\?" shrug match_msg "^marvvin[:,].*" huh