os / slacker

Full-featured Python interface for the Slack API
Apache License 2.0
1.6k stars 245 forks source link

"Slack API Tester" -- rename #99

Closed GildedHonour closed 7 years ago

GildedHonour commented 7 years ago

When I post a message to a channel, it posts it under the name "Slack API Tester". How can I setup it up or rename?

sughodke commented 7 years ago

Create a Slack App and authorize it to your Organization's Slack. Creating the App will let you naming it, etc. (Authorizing your App will generate a Token, use that in Slacker)

https://api.slack.com/slack-apps https://api.slack.com/custom-integrations/legacy-tokens

Neurobion commented 7 years ago

That's true but it raise an exception.

simonsolnes commented 7 years ago

When using slacker.chat.post_message() pass the arugment as_user = True to send it from yourself, or username = "foobar" to set the username.