A WeeChat script for Slack.com. Supports threads and reactions, synchronizes read markers, provides typing notification, etc..
Nightly release, always generated from the master branch.
Note: This will most likely be the last version before version 3.0.0, which is a mostly complete rewrite of the script with some breaking changes. Notably the configuration options have completely changed to be more in line with how the IRC plugin does it with a separate section for each Slack workspace. There will be some new features, but some existing features might also be dropped. Several bugs have been fixed, but of course new ones may have been introduced too.
auto_open_threads
enabled (fixes #803, fixes #830)./buffer set unread
is run.extract_token_from_browser.py
(PR #909).<
and >
(fixes #908). The fix in v2.10.1 only fixed it for normal text, not e.g. code blocks and attachments.extract_token_from_browser.py
.xoxc-
) tokens. These connections started failing after a change in the Slack API which made wee-slack unable to run at all (issue #901).<
and >
. A regression in 2.10.0 made these be removed.render_emoji_as_string
is set to both
. A regression in 2.10.0 made emojis show twice with this option (PR #902)./reply
command without any arguments (issue #900).extract_token_from_browser.py
(PR #884).extract_token_from_browser.py
(PR #887).extract_token_from_browser.py
(PR #884, PR #887).extract_token_from_browser.py
(PR #887)./msg *
in thread buffers (fixes #888).rich_text
block (fixes #354, fixes #550, fixes #893).weechat.look.buffer_time_format
option (fixes #871).Note that Slack will make a breaking change in their API on September 20, 2022 (the day after this release), which means that all earlier versions of wee-slack will stop working. This release adds support for the change and will not be affected by it.
Note that this will most likely be the last release supporting Python 2 (possibly apart from bug fixes and small features). The next major release will most likely require Python >= 3.3 or Python >= 3.6.
rtm.start
API method with other API methods. rtm.start
will stop working on September 20, 2022 (fixes #866, PR #857).xoxc-
), i.e. tokens pulled out of the official client which doesn't require registering the wee-slack app in Slack (fixes #844, PR #857).weechat.look.prefix_align
is set to none
./query
command not working for new group IMs (fixes #852, PR #857).prefix_same_nick
after reprinting messages if the first and last message were from the same person.Note that this version changes the default value of the background_load_all_history
option to true
, but this will not change for existing installations. It is recommended to set it to true
unless you experience performance issues. If you keep it at false
you will experience these issues:
The reason for these issues now being present with background_load_all_history
set to false
is that the API has changed, so we can't check for unread messages without loading the history anymore.
/rehistory
command to only print the buffer again, not fetch the history from Slack again, unless the -remote
option is provided.weechat.history.max_buffer_lines_number
option to decide how much backlog to keep.history_fetch_count
for how much history to fetch (fixes #376).<team>.slack.com
to slack.<team>
(fixes #709)./slack create
(fixes #415).weemoji.json
file.thread_messages_in_channel
option in certain channels (fixes #664).date_printed
(fixes #514).slack_timeout
for websocket connection (relates to #793).notify_subscribed_threads
.record_events
files in separate directories for each team./upgrade
(fixes #275, fixes #309, fixes #310).record_events
not working (fixes #761). This bug was introduced in version 2.5.0./slack
complete thread hashes. This bug was introduced in version 2.5.0./slack status
not completing emojis when trying to complete without typing anything first./slack register
not working after Slack made their OAuth implementation stricter.reply_count
property of a message instead of replies
, because replies
isn't provided anymore.Note that you need to update the weemoji.json
file when upgrading to this version.
/reply -alsochannel
to do this./slack back
.irc.look.server_buffer
is changed (fixes #712)./slack register <token>
./thread
in team buffer (fixes #737)./rehistory
(fixes #714).highlight_words
for new channels and thread channels (fixes #736).debug_mode
is on.logger_backlog
for backlog messages. This was inadvertently removed in 2.4.0.