Forums

Slackclient Python Module

When attempting to use Slackclient to connect to Slack and send messages, I'm constantly getting an error that the slack_client.rtm_connect() is not connecting.

Is this expected or a way to fix it?

Thanks!

rtm_connect uses web sockets, and as free user, you can only access a whitelist over http/https. Youl will have to upgrade to get rtm_connect to work (otherwise you could also use a different slack endpoint that uses http/https)

How did you import slackclient? Pip is not working since I need sudo permissions.

You can install modules using pip with the options from this help page.