From 88014f6e22c06a1f67c368f00a7a5029fb1aa99d Mon Sep 17 00:00:00 2001 From: Nick Chambers Date: Sat, 3 Jul 2021 17:58:54 -0500 Subject: [PATCH] Add a hundred limes --- rowbot | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/rowbot b/rowbot index d223d2c..791c4d6 100755 --- a/rowbot +++ b/rowbot @@ -1088,6 +1088,22 @@ hook_post_NICK_alternick() { fi } +hook_cmd_limes() { + local limes + + case $action in + uplime) + (( limes = (RANDOM % 42) + 1 )) + + if [[ $from = Time-Warp ]]; then + limes=42 + fi + + (( limeification = (limes * 100) / 42 )) + privmsg "$to" "$limes limes (limes to $limeification%)" + esac +} + ### # driver ###