aboutsummaryrefslogtreecommitdiffstats
path: root/slack/commands.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix bots with multiple names only being added once to nicklistTrygve Aaberge2024-02-181-1/+1
| | | | | If a bot uses multiple nicks, we have to add all of them to the nicklist, so none of the nicks are shown as offline.
* Don't include external nick suffix when completingTrygve Aaberge2024-02-181-4/+4
| | | | | Mostly because it's a bit simpler not having to handle this suffix when linkifying text.
* Refactor nick handlingTrygve Aaberge2024-02-181-6/+7
|
* Handle messages without a user fieldTrygve Aaberge2024-02-181-2/+2
| | | | | | This can happen in channels shared between workspaces if one of the workspaces are removed. Then messages from users in that workspace will not have a user field anymore, but instead a user_profile field.
* Fix bugs with /slack reply commandTrygve Aaberge2024-02-181-7/+3
|
* Perform nick completion in last spoken orderTrygve Aaberge2024-02-181-11/+45
| | | | | | | | | | | | | | | This makes it complete nicks that spoke last first, and then nicks that haven't spoken, and lastly yourself. This is the same as the IRC plugin does by default. It adds completion of nicks both with and without @, as the default completion of nicks from the nicklist is just alphabetical. Completion of workspace nicks is removed for now. It only completed workspace nicks that are already loaded, so it might be better to complete workspace nicks in the `input_complete_cb` function instead (since functions using `completion_list_add` can't be async, only `input_complete_cb` can).
* Add command /slack replyTrygve Aaberge2024-02-181-0/+21
|
* Set options value to True if it's set without a valueTrygve Aaberge2024-02-181-47/+27
| | | | | | | It became very confusing to use None to represent it being set without a value, so use True instead. If it has a value it will always be a string, so you can still distinguish between an option without a value and an option with a truthy value.
* Format all files with ruffTrygve Aaberge2024-02-181-1/+1
|
* Support completion of all workspace nicksTrygve Aaberge2024-02-181-3/+18
|
* Fix compatibility with WeeChat 2.9Trygve Aaberge2024-02-181-5/+11
|
* Add completion of emoji namesTrygve Aaberge2024-02-181-1/+37
|
* Add completion for conversation namesTrygve Aaberge2024-02-181-8/+17
|
* Support completing @nicks in current bufferTrygve Aaberge2024-02-181-3/+27
| | | | | | | | | | | Adds all known nicks in the current buffer with an @ prefix to the nicks completion. Disables the API search based nick completion for now until it's working properly. It currently doesn't have any context of which conversation/thread you are in, so you often get other nicks than the one you want to complete first. Additionally, it doesn't work with OAuth tokens.
* Use one debug buffer for all debug loggingTrygve Aaberge2024-02-181-6/+4
| | | | | I will implement filtering like the /server raw buffer, instead of having multiple debug buffers.
* Mark as read when switching away from bufferTrygve Aaberge2024-02-181-1/+23
|
* Support opening a debug buffer with all ws messagesTrygve Aaberge2024-02-181-1/+5
|
* Support thread hash completionTrygve Aaberge2024-02-181-5/+42
|
* Support thread buffersTrygve Aaberge2024-02-181-50/+63
|
* Split edgeapi out to separate classTrygve Aaberge2024-02-181-1/+1
| | | | | Since this isn't available for OAuth tokens it's good to have an easy way to see where it's used.
* Support rendering filesTrygve Aaberge2024-02-181-1/+3
|
* Rename add_message and add some TODOsTrygve Aaberge2024-02-181-0/+1
|
* Add command rehistory to rerender historyTrygve Aaberge2024-02-181-0/+9
|
* Add -data option to /slack debug error to print rtm event dataTrygve Aaberge2024-02-181-4/+13
|
* Record uncaught errors and add command to display themTrygve Aaberge2024-02-181-2/+40
|
* Don't allow /slack (dis)connect when connecting/(dis)connectedTrygve Aaberge2024-02-181-21/+49
|
* Log failed async tasks more robustlyTrygve Aaberge2024-02-181-3/+3
|
* Add command /slack disconnectTrygve Aaberge2024-02-181-0/+15
|
* Only connect to all teams in /slack connect when -all is givenTrygve Aaberge2024-02-181-3/+3
|
* Replace some usages of Any with proper typesTrygve Aaberge2024-02-181-3/+3
|
* Fix some mypy specific type issuesTrygve Aaberge2024-02-181-3/+8
|
* Fix compatibility with Python 3.8Trygve Aaberge2024-02-181-4/+5
|
* Add a /slack debug commandTrygve Aaberge2024-02-181-0/+16
|
* Add suffix after completion wordTrygve Aaberge2024-02-181-6/+24
|
* Fix bugs when changing input while completingTrygve Aaberge2024-02-181-5/+8
|
* Combine complete_next and complete_previousTrygve Aaberge2024-02-181-32/+26
|
* Add support for completing nicksTrygve Aaberge2024-02-181-0/+74
| | | | | | | This uses Slacks edgeapi which only works for session tokens, but has the benefit of being able to complete nicks without all users being loaded. So need to add some completion for the loaded users for when using OAuth tokens as well.
* Show nick suffix for external usersTrygve Aaberge2024-02-181-1/+1
|
* Call rtm.connect (doesn't connect to web socket yet)Trygve Aaberge2024-02-181-1/+1
|
* Add some todosTrygve Aaberge2024-02-181-0/+2
|
* Split slack classes into multiple filesTrygve Aaberge2024-02-181-1/+1
|
* Split weechat and slack configTrygve Aaberge2024-02-181-1/+1
|
* Fix most mypy type errorsTrygve Aaberge2024-02-181-9/+10
|
* Remove active_responsesTrygve Aaberge2024-02-181-1/+1
|
* Show disconnected status in input fieldTrygve Aaberge2024-02-181-2/+2
|
* Create buffers on connectTrygve Aaberge2024-02-181-0/+19
|
* Add command completionTrygve Aaberge2024-02-181-12/+96
|
* Add workspace rename and del commandsTrygve Aaberge2024-02-181-0/+42
|
* Add command to list workspacesTrygve Aaberge2024-02-181-10/+72
|
* Add command to add workspaceTrygve Aaberge2024-02-181-0/+121