I'm pretty new to Python, but I've created a slackbot from a tutorial in Python as a small project, here is the code: https://github.com/sophiefitzpatrick/gallagherbot/blob/master/index.py
At the moment the bot works within my own Slack workspace, but in the future I'd like the bot to be available in other workspaces.
For this, the username and icon of the bot would have to be passed in my code's payload.
I know I need to call this method: https://api.slack.com/methods/chat.postMessage
And pass these arguments:
icon_url
username
and make sure is_user
is set to false
But I'm struggling making this a reality within the code, any help for a newbie would be greatly appreciated.
Cheers