From ed774ac3791c34f4cae1e08e7b7b0221d75b2904 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Wed, 8 May 2019 23:07:59 -0700 Subject: [PATCH] Spinach: Reveal answer when skipping/rerolling --- PBot/Plugins/Spinach.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PBot/Plugins/Spinach.pm b/PBot/Plugins/Spinach.pm index ad8e41f8..3fb1faac 100644 --- a/PBot/Plugins/Spinach.pm +++ b/PBot/Plugins/Spinach.pm @@ -1903,6 +1903,8 @@ sub getlies { $needed -= @rerolls; if ($needed <= 0) { $state->{reroll_question} = 1; + my $answer = uc $state->{current_question}->{answer}; + $self->send_message($self->{channel}, "The answer was: $answer"); return 'reroll'; } } @@ -1911,6 +1913,8 @@ sub getlies { my $needed = int (@{$state->{players}} / 2) + 1; $needed += @keeps; $needed -= @skips; + my $answer = uc $state->{current_question}->{answer}; + $self->send_message($self->{channel}, "The answer was: $answer"); return 'skip' if $needed <= 0; }