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)