blob: 5dcfe776fa15826d2406e753fc4d7fe89eb1002a (
plain) (
tree)
|
|
wee-slack
=========
A WeeChat plugin for Slack.com. Synchronizes read markers, provides typing notification, search, and more! Connects via the Slack API, and maintains a persistent websocket for notification of events.
![animated screenshot](https://dl.dropboxusercontent.com/u/566560/slack.gif)
#Dependencies
* WeeChat http://weechat.org/
(dev build from May 17 onward or weechat > 4.4, expected Aug 15, 2014)
* websocket-client https://pypi.python.org/pypi/websocket-client/
#Setup
###1. Install websocket-client lib
pip install websocket-client
###2. copy wee_slack.py to ~/.weechat/python/autoload
wget https://raw.githubusercontent.com/rawdigits/wee-slack/master/wee_slack.py
cp wee_slack.py ~/.weechat/python/autoload
###3. Start WeeChat
weechat
###4. Add a slack as an IRC server in weechat
/server add slack (YOUR_IRC_SERVER)/6667 -nicks=(YOUR_SLACK_USERNAME) -ssl -ssl_dhkey_size=1 -autoconnect
(YOUR IRC SERVER is your domain+irc.slack.com, ex: rednu.irc.slack.com)
/set irc.server.slack.password (YOUR_SLACK_PASSWORD)
###5. Configure the slack plugin
/set plugins.var.python.slack_extension.slack_api_token (YOUR_SLACK_TOKEN)
^^ (find this at https://api.slack.com/ under Authentication)
/set plugins.var.python.slack_extension.server (WEECHAT_SERVER_SHORT_NAME)
^^ (find this with /server list, probably 'slack')
###6.
/save
/python reload
#Optional settings (you want this)
##### Show typing notification in main bar (slack_typing_notice)
/set weechat.bar.status.items [buffer_count],[buffer_plugin],buffer_number+:+buffer_name+{buffer_nicklist_count}+buffer_filter,[hotlist],completion,scroll,slack_typing_notice
##### Hide voice/devoice messages
/filter add hide_irc_mode_messages * irc_mode *
##### Persistent list of global users on left:
/bar add globalnicklist root left 0 1 @irc.slack.#general:buffer_nicklist
##### Show channel name in hotlist after activity
/set weechat.look.hotlist_names_level 14
|