slight tweak to the !reaction reply string

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
Brian S. Stephan 2025-02-24 16:43:44 -06:00
parent 3100efd4a9
commit e7d63ee963
Signed by: bss
GPG Key ID: 3DE06D3180895FCB
2 changed files with 6 additions and 6 deletions

View File

@ -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."""

View File

@ -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)'
)