aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Replace pip with pip3 in readmeTrygve Aaberge2020-01-211-1/+1
|
* Release v2.4.0v2.4.0Trygve Aaberge2020-01-165-3/+58
|
* Use Python3 websocket-client (#731)Jay Williams2020-01-091-1/+1
| | | When installing on OpenBSD, you need to specify the Python 3 version (not Python 2)
* Add a command to list the Slack teamsTrygve Aaberge2019-10-161-0/+13
| | | | | This can be used when you want to remove a team, so you know which token to remove.
* Use max of submessages and replies for number_of_repliesTrygve Aaberge2019-10-032-1/+38
| | | | | | | | | When new replies come in over websocket, we don't update the message_json of the parent message with the new replies, we just append the new message to the submessages list. Therefore, the number_of_replies function has to check both of these and take the max. Fixes #722
* Update dependency instructions for python 3Trygve Aaberge2019-10-011-2/+2
|
* Update README.md (#719)oksiquatzel2019-10-011-0/+1
| | | | | | It tooked me a while to figure out why weechat says that websocket module was not found in wee-slack plugin. pip list sayed websocket-client was installed. after installing pip3 and websocket-client with pip3, everything worked fine. The current ubuntu 19.04 `python-websocket` package has always installed the python2.7 version.
* Add basic support for private channels converted from publicTrygve Aaberge2019-10-013-11/+111
| | | | | | | | | | | | | | | | | | This is for channels which initially were public, but then are changed to private. They look the same as groups (channels initially created as private) in the official clients, but can only be used with the conversations api. They are listed in the channels list of rtm.start with is_private set to true. There are some remaining issues, which are documented in the readme. I'm not sure if we can support read sync and showing unread on load without changes from Slack to the API. Showing thread messages in the channel is possible to fix, but we would have to send requests to load the thread history for all the messages in the history that has replies. Fixes most of #644
* Print thread broadcast messages in parent channelTrygve Aaberge2019-10-011-3/+8
| | | | Fixes #620
* Add documentation for how to send multiple linesTrygve Aaberge2019-10-011-0/+40
|
* Print user friendly error in handle_conversationsmembersTrygve Aaberge2019-08-261-2/+7
| | | | Fixes parts of #714
* Fix process_subteam_created after adding is_member to SlackSubteamTrygve Aaberge2019-08-251-2/+3
| | | | | | | | This was broken in commit 6f9339b. I haven't verified that is_member is set to the correct value when a user group is created, because I don't have access to a slack team where I can create user groups right know.
* Show if user is external in /slack usersTrygve Aaberge2019-08-251-2/+9
|
* Don't list dms and mpdms in /slack channelsTrygve Aaberge2019-08-251-1/+2
|
* Add the usergroups you are a member of to highlight wordsTrygve Aaberge2019-08-251-11/+23
| | | | | | Also shows if you are a member or not in the command /slack usergrous. Fixes #272, fixes #367, fixes #542
* Add nicks without @ prefix to nick completionTrygve Aaberge2019-08-251-0/+1
| | | | | This allows you to complete nicks without a leading @ in buffers we don't show the nicklist, i.e. the team buffer and thread buffers.
* Complete all nicks on the team for some commandsTrygve Aaberge2019-08-251-1/+7
|
* Add support for the /invite commandTrygve Aaberge2019-08-251-0/+48
| | | | Fixes #698
* Linkify users in /slack slash commandTrygve Aaberge2019-08-251-3/+4
| | | | | | | | If we don't linkify users, only usernames (which are not shown anymore) are accepted by the chat.command endpoint, not display names. It does accept user links, so we can use that. However, it doesn't seem to accept channel links (at least the invite command, which is what I tested), so we only linkify users.
* Print responses and errors from /slack slash commandTrygve Aaberge2019-08-251-1/+16
| | | | Fixes #369, fixes #374
* Replace weechat with w a few placesTrygve Aaberge2019-08-251-7/+7
| | | | We should always use w, so we go through the WeechatWrapper.
* Remove url from rtm start test dataTrygve Aaberge2019-08-251-1/+1
| | | | So it doesn't try to connect to the websocket when running the tests.
* Match all channel and user prefixes in unfurl_refsTrygve Aaberge2019-08-251-4/+4
| | | | | | I don't know all the possible prefixes, and I don't think it's a problem to just match # and @. The prefixes I've seen for channels are #C, #D and #G, and for users @U and @W.
* Refactor linkify_text to use re.subTrygve Aaberge2019-08-252-27/+25
| | | | | Instead of splitting the message at spaces and checking and replacing each word, use re.sub for the whole message.
* Support @everyone in linkify_textTrygve Aaberge2019-08-252-1/+6
|
* Add some more tests for linkify_textTrygve Aaberge2019-08-252-0/+39
|
* Refactor unfurl_refs to use re.subTrygve Aaberge2019-08-251-36/+31
| | | | | Instead of finding each match and calling replace on the text with that match, use re.sub to replace all the matches.
* Include @channel, @everyone and @here in usergroup completionTrygve Aaberge2019-08-251-2/+3
| | | | | | | | @group isn't mentioned in the documentation[0], and is changed to @channel if you try to complete it in the web client, so it probably shouldn't be used anymore. [0]: https://get.slack.help/hc/en-us/articles/202009646-Notify-a-channel-or-workspace
* Render group notifications with @ instead of !Trygve Aaberge2019-08-252-2/+20
| | | | | | | | | This is for the notifications @channel, @everyone, @group and @here. @group isn't mentioned in the documentation[0], but it is still rendered as a highlight in the web client, so I included it. [0]: https://get.slack.help/hc/en-us/articles/202009646-Notify-a-channel-or-workspace
* Print error in /part command when channel is not foundTrygve Aaberge2019-08-251-0/+2
|
* Include channel prefix in key in get_channel_mapTrygve Aaberge2019-08-253-11/+11
| | | | Fixes #587
* Include @ in subteam handleTrygve Aaberge2019-08-253-20/+18
| | | | Subteams/usergroups should never be used without the @.
* Extract printing user/channel info to a shared functionTrygve Aaberge2019-08-251-22/+22
|
* Show handle when listing usergroup membersTrygve Aaberge2019-08-251-2/+2
|
* Show member status in /slack channels commandTrygve Aaberge2019-08-251-1/+7
|
* Use name instead of slack_name in /slack channels commandTrygve Aaberge2019-08-251-2/+2
| | | | This includes the prefix that shows the channel type.
* Support nicks prefixed with @ in /msg commandTrygve Aaberge2019-08-241-1/+1
|
* Don't add deleted users to tab completionTrygve Aaberge2019-08-071-1/+1
| | | | Fixes #703
* Add option to only use full namesTrygve Aaberge2019-08-071-1/+10
| | | | Fixes #100
* Fallback to full name if display name is not setTrygve Aaberge2019-08-072-1/+3
| | | | | | | The username can't be changed by the users themselves now and is auto generated for new users, so we shouldn't use it. Only use username as a last resort if neither display name nor full name is set (I'm not sure this ever happens, it looks like the full name field is mandatory).
* Fix attachment fields without titlesDavid Vo2019-07-221-1/+1
| | | | | | | | | | | | | | | | | | | | Attachment fields are not guaranteed to have a title at all. This fixes in particular slackbot app approval messages, with an attachment like so: { "callback_id": "whitelist_A11BCGM0E_181389840855", "fields": [ { "short": true, "value": ":white_check_mark: *<@U4RPXA42F|davo> approved this app for the team.*" } ], "fallback": "Approve or deny the application", "id": 4, "color": "#2ab27b" }
* Set localvar_set_server for thread buffersTrygve Aaberge2019-06-201-0/+1
|
* Expose more information in /whois (#700)David Vo2019-06-151-3/+14
| | | Also hide any unset fields.
* Ignore away command run on non-slack buffers without -allTrygve Aaberge2019-06-141-1/+3
| | | | | This prevents printing an error when running /away without -all on buffers other than slack buffers.
* Sort nicks in mpdm name alphabeticallyTrygve Aaberge2019-06-121-2/+2
|
* Don't include own nick in mpdm namesTrygve Aaberge2019-06-121-3/+4
|
* Support topic changes for private channelsTrygve Aaberge2019-06-122-10/+11
| | | | Fixes #697
* Increase some header levels in the readmeTrygve Aaberge2019-06-121-11/+11
|
* Make distro/OS names bold in readmeTrygve Aaberge2019-06-121-11/+8
|
* Add more repo specific instructions for installing dependenciesTrygve Aaberge2019-06-121-15/+12
|