From 0d691ff431dfb8f6e28eca4424173e6d3b75be3b Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Mon, 24 Feb 2025 16:48:30 -0600 Subject: [PATCH] tweak the green-ness of the middle !reaction result Signed-off-by: Brian S. Stephan --- dice/ircplugin.py | 2 +- tests/test_dice_ircplugin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dice/ircplugin.py b/dice/ircplugin.py index eb4a7d3..a7a65c3 100644 --- a/dice/ircplugin.py +++ b/dice/ircplugin.py @@ -114,7 +114,7 @@ class Dice(Plugin): if summary in ('--', '-'): result_str = f"4{label}" elif summary == '~': - result_str = f"9{label}" + result_str = f"3{label}" else: result_str = f"9{label}" diff --git a/tests/test_dice_ircplugin.py b/tests/test_dice_ircplugin.py index 2a0ca2c..3926434 100644 --- a/tests/test_dice_ircplugin.py +++ b/tests/test_dice_ircplugin.py @@ -113,7 +113,7 @@ class MarkovTestCase(TestCase): self.plugin.handle_reaction_roll(self.mock_connection, mock_event, match) self.mock_bot.reply.assert_called_with( mock_event, - 'test: the current disposition is 9positive, with complications 14(10)' + 'test: the current disposition is 3positive, with complications 14(10)' ) # bad and very bad are bold red