marvvin

IRC bot
Log | Files | Refs | README | LICENSE

commit a64a0b0cfa9bdceb047b26d75b00802e2eac0ca5
parent d918094dc773ee379dca36deb477c0b7fc1b598c
Author: hhvn <hayden@hhvn.uk>
Date:   Tue,  8 Jun 2021 19:19:23 +0100

Merge branch 'master' of /home/void/projects/marvvin

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