Skip to content

Commit

Permalink
Fix formatter parameter issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidWylie-ZUK committed Jan 8, 2024
1 parent ac64589 commit 93c5e31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion roll_witch/dice_bot/event_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions roll_witch/rolling/command/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 93c5e31

Please sign in to comment.