Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change f-string to .format()
  • Loading branch information
Harshg999 authored and sreenaths committed Feb 22, 2021
1 parent 1c937c8 commit 152c77d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop/core/src/desktop/lib/botserver/views.py
Expand Up @@ -83,7 +83,7 @@ def parse_events(event_message):

def say_hi_user(channel, user_id):
"""Bot sends Hi<username> message in a specific channel"""
bot_message = f'Hi <@{user_id}> :wave:'
bot_message = 'Hi <@{}> :wave:'.format(user_id)
response = slack_client.api_call(api_method='chat.postMessage', json={'channel': channel, 'text': bot_message})
return response

Expand Down

0 comments on commit 152c77d

Please sign in to comment.