aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
Commit message (Collapse)AuthorAgeFilesLines
* Handle reply for broadcast messages sent from wee-slackTrygve Aaberge2020-03-021-1/+4
|
* Add ability to broadcast a thread message to the rest of the channel. (#753)Trygve Aaberge2020-03-021-12/+35
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ability to broadcast a thread message to the rest of the channel. This adds an optional -broadcast parameter to /reply and a /slack broadcast command. Also update completions for /reply. * Change reply argument from -broadcast to -alsochannel, remove command_broadcast, and change reply to work without the id when in a thread buffer. * Clarify documentation of /reply command, and refactor msg logic. * Fix /help reply display.
| * Fix /help reply display.Aidan Epstein2020-03-011-0/+2
| |
| * Clarify documentation of /reply command, and refactor msg logic.Aidan Epstein2020-03-011-12/+16
| |
| * Change reply argument from -broadcast to -alsochannel, removeAidan Epstein2020-03-011-25/+21
| | | | | | | | | | command_broadcast, and change reply to work without the id when in a thread buffer.
| * Add ability to broadcast a thread message to the rest of the channel.Aidan Epstein2020-02-291-5/+26
| | | | | | | | | | | | | | This adds an optional -broadcast parameter to /reply and a /slack broadcast command. Also update completions for /reply.
* | Differentiate between manual and auto away in away bar itemTrygve Aaberge2020-03-021-1/+6
| |
* | Handle manual presence change properlyTrygve Aaberge2020-03-021-2/+5
| | | | | | | | | | | | | | | | The manual_presence_change event is just for your own user and doesn't include any user ids. This adds a field on the team with your manual presence so we can show if the user is automatically away or manually away.
* | Ensure we are subscribed to our own presenceTrygve Aaberge2020-03-021-1/+3
| | | | | | | | | | | | Slack doesn't send the presence_change event for our own user when it updates the auto presence unless we subscribe to it. The manual_presence_change however is sent either way.
* | Set presence to active when switching buffer or calling /slack backTrygve Aaberge2020-03-021-6/+12
| |
* | Show away in away bar item when presence is awayTrygve Aaberge2020-03-021-0/+18
|/ | | | | | | | | | This shows it in the standard away bar item, and also adds a specific one for wee-slack. The reason for including the specific one is that if multiple scripts in the same plugin define the same bar item, only one of them will work[0]. So people that have another python script which also defines the away bar item can use the slack_away bar item instead. [0]: https://github.com/weechat/weechat/issues/1348
* Set re.UNICODE correctly in linkify_textTrygve Aaberge2020-02-281-1/+1
| | | | | | | This caused nicks with unicode characters to not be linkified on Python 2. The error was introduced in commit f5cfdab. Fixes #747
* Don't send history_message to SlackThreadChannel.buffer_prntTrygve Aaberge2020-02-271-1/+1
| | | | | | | It isn't currently being used. This fixes an error I introduced when I removed **kwargs from this method in commit 6238505.
* Print error if trying to use /thread in team bufferTrygve Aaberge2020-02-231-0/+4
| | | | Fixes #737
* (Un)merge team buffers when irc.look.server_buffer is changedTrygve Aaberge2020-02-231-2/+15
| | | | Fixes #712
* Don't switch to the debug buffer when config is changedTrygve Aaberge2020-02-231-3/+1
|
* Move inviter text to before blocks and unfurl_refsTrygve Aaberge2020-02-231-6/+5
| | | | | Blocks should come after the inviter text, and by moving it before unfurl_refs we don't have to call that twice.
* Add a helper for colorizing stringsTrygve Aaberge2020-02-231-48/+35
|
* Reset color after the text that should be coloredTrygve Aaberge2020-02-231-5/+9
|
* Pass team/channel to handle/process methods directlyTrygve Aaberge2020-02-231-230/+177
|
* Simplify reusing handle/process functionsTrygve Aaberge2020-02-231-38/+16
|
* Use correct name for id in SlackSubteam.__eq__Trygve Aaberge2020-02-231-1/+1
|
* Support populating kwargs metadata from json properlyTrygve Aaberge2020-02-231-10/+11
|
* Simplify passing ws metadataTrygve Aaberge2020-02-231-29/+10
|
* Include team in SlackRequestTrygve Aaberge2020-02-231-65/+65
|
* Remove most commented out codeTrygve Aaberge2020-02-231-84/+0
|
* Remove useless ifTrygve Aaberge2020-02-231-4/+1
|
* Cleanup/simplify callback functionsTrygve Aaberge2020-02-231-35/+10
|
* Show reactions you have added in a different colorTrygve Aaberge2020-02-231-20/+25
| | | | Fixes #713
* Allow render_emoji_as_string = 'both' (#752)Zachary Ware2020-02-221-7/+22
| | | | | | With this setting, emoji are rendered as `<emoji character> (:text-form:)` to allow the user to see both representations (where possible) or an indication that their terminal isn't actually rendering a character.
* Support parsing date refsTrygve Aaberge2020-02-211-0/+31
|
* Support unfurling date refs by using the fallbackTrygve Aaberge2020-02-201-0/+2
|
* Only use fallback for refs if ref is not foundTrygve Aaberge2020-02-201-32/+26
| | | | | | Fallbacks in messages are not changed when channels/users/groups are renamed, so they shouldn't be used unless the ref can't be found. Links are not refs we look up, so they are still treated the same way.
* Remove ignore_alt_text parameter from unfurl_refsTrygve Aaberge2020-02-201-6/+3
| | | | | This is only used in tests and in render_topic, and I don't see why render_topic shouldn't follow the global config that is set.
* Remove auto_link_display parameter from unfurl_refsTrygve Aaberge2020-02-201-5/+3
| | | | | This is only used in tests, and there we can override the config instead.
* Support blocks of type imageTrygve Aaberge2020-02-191-0/+6
|
* Improve unfurling of text objects in blocksTrygve Aaberge2020-02-191-13/+11
|
* Don't crash when getting block action types other than buttonTrygve Aaberge2020-02-191-1/+8
|
* Tweak formatting of blocksTrygve Aaberge2020-02-191-6/+6
|
* manage unsupported block and rich textGianluca Arbezzano2020-02-181-1/+3
| | | | | | | | | I added support for reach_text block otherwise at the end of all messages wee-slack was printing the raw JSON block. I have also fixed the `call` block to print the right join url Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
* Use color_deleted for unsupported blocks.Aidan Epstein2020-02-181-1/+1
|
* Fix unfurl_blocks call placement and add a message about unsupported blocks ↵Aidan Epstein2020-02-181-4/+5
| | | | inside the message.
* Log errors to a proper debug location.Aidan Epstein2020-02-181-2/+2
|
* Add support for the call blockGianluca Arbezzano2020-02-181-0/+2
| | | | | | This commit adds the support for call block. It fixes #726 Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
* Fix message formatting by calling render_formatting.Aidan Epstein2020-02-181-3/+7
|
* Handle a couple more cases. Also add some debug output.Aidan Epstein2020-02-181-8/+21
|
* Add initial implementation of slack blocks display.Aidan Epstein2020-02-181-0/+17
|
* Add options for hard coded colorsTrygve Aaberge2020-02-011-3/+11
| | | | Fixes #681
* Support sending reactions with emoji charactersTrygve Aaberge2020-02-011-7/+23
| | | | Fixes #236, fixes #575
* Render emojis as emoji charactersTrygve Aaberge2020-02-011-9/+38
| | | | Fixes #465