From 93c5e31cc6b5757e5036bb21283f18be0ab7b415 Mon Sep 17 00:00:00 2001 From: DavidWylie-ZUK Date: Mon, 8 Jan 2024 15:27:39 +0000 Subject: [PATCH] Fix formatter parameter issue. --- roll_witch/dice_bot/event_listener.py | 2 +- roll_witch/rolling/command/token.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roll_witch/dice_bot/event_listener.py b/roll_witch/dice_bot/event_listener.py index 5508ed8..ec889cd 100644 --- a/roll_witch/dice_bot/event_listener.py +++ b/roll_witch/dice_bot/event_listener.py @@ -29,7 +29,7 @@ async def on_message(self, message): user=message.author.display_name, ) message_to_send = command.format_output( - roll_result=response, user=message.author.display_name + result=response, user=message.author.display_name ) await message.channel.send(message_to_send) except ValueError: diff --git a/roll_witch/rolling/command/token.py b/roll_witch/rolling/command/token.py index 14299e2..f3efc79 100644 --- a/roll_witch/rolling/command/token.py +++ b/roll_witch/rolling/command/token.py @@ -28,5 +28,5 @@ def execute(self, roll_string: str, user: str): return result - def format_output(self, roll_result, user) -> str: - return self.output_parser.write_output(roll_result, user) + def format_output(self, result, user) -> str: + return self.output_parser.write_output(result, user)