Custom Slack Bot cannot connect

2019-07-11 05:56发布

I've been trying to make a slack bot that replies to simple queries and does some simple stuff to help around the office. The bot works fine, it just seems that it cannot seem to connect to Slack from behind our proxy. When I test it from my own mobile internet connection it works fine, but when trying to run it behind the proxy it cannot connect to slack. Is there any way I can configure proxy settings for the bot to use when it connects? This is all very strange to me because Slack is not blocked in any way by our proxy.

标签: proxy slack
1条回答
Luminary・发光体
2楼-- · 2019-07-11 06:34

What language are you developing the bot in? The library you're using to connect to the API should provide functionality to use a proxy during the connection. As an example, in Python you could use the requests package, which allows you to define an HTTP and HTTPS proxy.

(Docs)

查看更多
登录 后发表回答