OS X
I installed weechat with --with-python and then install websocket client with pip install websocket-client.
Copy the file to .weechat/python/autoload folder and start weechat afterward. Set the token with /set plugins.var.python.slack.slack_api_token <my-token>; save and reload.
I did see python scripts loaded: slack when weechat starts.
However, /slack join general doesn't work and it's showing an error "command not found join"
Could anyone help me point out what i did wrong here?
Thank you.
I think the documentation needs to be updated; you should just be able to /join #name-of-channel.
If i type /join #general, i get irc: command "join" must be executed on irc buffer (server or channel). /server list returns No server
Make sure you have a Slack buffer focused. This worked for me:
[python] 1:foo.slack.com rather than [weechat] or [irc/...]/join #testing#testing channel on that slack.If you're already in a channel on that slack, you should have autojoined it when the plugin connected to it, and you can use that instead. If you aren't using merged core buffers in weechat, the foo.slack.com buffer is probably not buffer 1, but it should show up in the buffer list.
Note that Slack connections don't show up in /server list even when you are connected to them.
I saw this [06:36] [1] [core] 1:weechat ; that means I'm already on core buffer right?
After that, /join <channel> stills give me command "join" must be executed on irc buffer (server or channel)
That means you're in part of the core buffer that is used for issuing commands to weechat itself. Press ctrl-X until it says [python] with the appropriate Slack URL, as explained above, rather than [core]; then try it.
It works now. Many thanks.
I'm reopening this because I think there is an actionable issue here: the documentation shouldn't point users to /slack join and should make it clear what they need to do to use /join instead. Glad you got it working though. :)
Still think the second half of @ToxicFrog's suggestion needs to be done -- I just spent 30 minutes trying to figure out the same thing. It'd be great to have a suggestion to Ctrl-X to switch the buffer.
Most helpful comment
Make sure you have a Slack buffer focused. This worked for me:
[python] 1:foo.slack.comrather than[weechat]or[irc/...]/join #testingAnd I ended up in the
#testingchannel on that slack.If you're already in a channel on that slack, you should have autojoined it when the plugin connected to it, and you can use that instead. If you aren't using merged core buffers in weechat, the foo.slack.com buffer is probably not buffer 1, but it should show up in the buffer list.