Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix formatter parameter issue. #19

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Loading