X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=turbot%2Finteraction.py;h=ec64706658f3126bfc1974921d12e4cdece78ffe;hb=2dd1171d23caf8fcc739541bfad22d3805a094a9;hp=1f5d11f4b4218b9a92680088d87521d69c6cd74b;hpb=0878d40471403513b6da016d7412d07a5d903e9b;p=turbot diff --git a/turbot/interaction.py b/turbot/interaction.py index 1f5d11f..ec64706 100644 --- a/turbot/interaction.py +++ b/turbot/interaction.py @@ -967,7 +967,7 @@ def solved(turb, body, args): The args string should be a confirmed solution.""" channel_id = body['channel_id'][0] - user_name = body['user_name'][0] + user_id = body['user_id'][0] old_puzzle = puzzle_for_channel(turb, channel_id) @@ -991,7 +991,7 @@ def solved(turb, body, args): # Report the solution to the puzzle's channel slack_send_message( turb.slack_client, channel_id, - "Puzzle mark solved by {}: `{}`".format(user_name, args)) + "Puzzle mark solved by <@{}>: `{}`".format(user_id, args)) # Also report the solution to the hunt channel hunt = find_hunt_for_hunt_id(turb, puzzle['hunt_id'])