From e7d63ee963a01baca73d87b96acab260c24e3902 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Mon, 24 Feb 2025 16:43:44 -0600 Subject: [PATCH] slight tweak to the !reaction reply string Signed-off-by: Brian S. Stephan --- dice/ircplugin.py | 2 +- tests/test_dice_ircplugin.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dice/ircplugin.py b/dice/ircplugin.py index 01192ca..eb4a7d3 100644 --- a/dice/ircplugin.py +++ b/dice/ircplugin.py @@ -118,7 +118,7 @@ class Dice(Plugin): else: result_str = f"9{label}" - return self.bot.reply(event, f"{nick}: the current disposition is: {result_str} 14({roll})") + return self.bot.reply(event, f"{nick}: the current disposition is {result_str} 14({roll})") def handle_roll(self, connection, event, match): """Handle the !roll command which covers most common dice stuff.""" diff --git a/tests/test_dice_ircplugin.py b/tests/test_dice_ircplugin.py index 6daecc1..2a0ca2c 100644 --- a/tests/test_dice_ircplugin.py +++ b/tests/test_dice_ircplugin.py @@ -95,7 +95,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 14(18)' + 'test: the current disposition is 9positive 14(18)' ) mock_event.arguments = ['!reaction'] match = re.search(dice.ircplugin.REACTION_COMMAND_REGEX, mock_event.arguments[0]) @@ -103,7 +103,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: 9VERY positive 14(20)' + 'test: the current disposition is 9VERY positive 14(20)' ) # decent is green @@ -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 9positive, with complications 14(10)' ) # bad and very bad are bold red @@ -123,7 +123,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: 4negative 14(4)' + 'test: the current disposition is 4negative 14(4)' ) mock_event.arguments = ['!reaction'] match = re.search(dice.ircplugin.REACTION_COMMAND_REGEX, mock_event.arguments[0]) @@ -131,5 +131,5 @@ 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: 4VERY negative 14(1)' + 'test: the current disposition is 4VERY negative 14(1)' )