slight tweak to the !reaction reply string
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
parent
3100efd4a9
commit
e7d63ee963
@ -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."""
|
||||
|
@ -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)'
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user