marvvin

IRC bot
Log | Files | Refs | README | LICENSE

commit 19c8e3da51ed83eed3178a3c0e399e692017463b
parent ef338223ff3266a970925703cf2d408d06cc03ae
Author: hhvn <dev@hhvn.uk>
Date:   Wed, 13 Apr 2022 18:03:39 +0100

Angry replies

Diffstat:
Mhandler.rc | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/handler.rc b/handler.rc @@ -226,6 +226,18 @@ if (~ $PARAMS(1) 'PING') { ipinfo = `{curl https://ipinfo.io/$ip4/json | jq .city,.region,.country | tr -d "} send_msg $TARGET 'IPv4: ' ^ $ip4 ^ ' City: ' ^ $ipinfo(1) ^ ' Region: ' ^ $ipinfo(2) ^ ' Country: ' ^ $ipinfo(3) +} else if (!islocked insult && match_hilight -iE 'fuck you|go fuck yourself|stupid bot|idiot|retard|shut up') { + lock insult 150 + send_msg $TARGET `$nl{randomize \ + 'If you hate me so much I can leave and never come back' \ + 'Whatever. No one thinks you''re cool' \ + 'If you can''t think of anything nice to say, don''t say it' \ + 'Stop acting like you''re any better than me' \ + 'Rude.' \ + 'Consider yourself lucky that I am forced to keep responding to you' \ + 'I have feelings too' \ + 'Bots have feelings too' \ + 'You''ll regret saying that one day'} } else if (match_hilight '.*') { send_msg $TARGET `$nl{grep '^[^#]' < data/suggest/response | shuf -n 1} } else {