marvvin

IRC bot
Log | Files | Refs | README | LICENSE

commit d04d43f3c7d742c2acb04ea2d3f044ea4fefb6cc
parent 6bfe403d8e8f0cc3c13681b5fddfb7610ebb9747
Author: hhvn <dev@hhvn.uk>
Date:   Tue,  8 Jun 2021 19:17:51 +0100

filters.sh: add topic func

Diffstat:
Mfilters.sh | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/filters.sh b/filters.sh @@ -181,6 +181,14 @@ say(){ ) | prepl_msg } +topic(){ + islocked topic && { + echo "$NICK: topic function locked temporarily" | prepl_msg + return + } + lock topic 2400 +} + calc(){ islocked bc && return lock bc 6 @@ -197,6 +205,7 @@ 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