Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use the correct nick color for bots with a username | Trygve Aaberge | 2024-02-18 | 1 | -10/+12 |
| | |||||
* | Remove async modifier from initialize_items function | Trygve Aaberge | 2024-02-18 | 2 | -4/+4 |
| | |||||
* | Include python_compatibility.py first in compiled script | Trygve Aaberge | 2024-02-18 | 1 | -1/+1 |
| | | | | | This is necessary for these functions to be available in the other files, and this file doesn't depend on any of the other files. | ||||
* | Support rendering message edits and deletions | Trygve Aaberge | 2024-02-18 | 5 | -18/+189 |
| | |||||
* | Set correct tags for self messages | Trygve Aaberge | 2024-02-18 | 2 | -3/+12 |
| | |||||
* | Render join and leave messages correctly | Trygve Aaberge | 2024-02-18 | 5 | -18/+125 |
| | |||||
* | Use eight digits for the WeeChat version | Trygve Aaberge | 2024-02-18 | 3 | -4/+4 |
| | | | | | It's four parts with two digits each, so it's more consistent to use eight digits even though the first is a zero. | ||||
* | Add tags to messages | Trygve Aaberge | 2024-02-18 | 3 | -18/+68 |
| | |||||
* | Fix default value True not working for options | Trygve Aaberge | 2024-02-18 | 1 | -4/+13 |
| | |||||
* | Support sending and receiving typing | Trygve Aaberge | 2024-02-18 | 6 | -5/+73 |
| | | | | | | This does not support globally showing typing from direct messages, like the old wee-slack did, because that's not supported by WeeChats typing plugin. It only shows typing in the current buffer. | ||||
* | Upgrade dependencies | Trygve Aaberge | 2024-02-18 | 2 | -157/+164 |
| | |||||
* | Handle failed rtm.connect response | Trygve Aaberge | 2024-02-18 | 1 | -2/+14 |
| | |||||
* | Show nicks in nicklist | Trygve Aaberge | 2024-02-18 | 5 | -27/+125 |
| | |||||
* | Fix typings for create_connection | Trygve Aaberge | 2024-02-18 | 4 | -16/+37 |
| | |||||
* | Set buffer properties | Trygve Aaberge | 2024-02-18 | 1 | -12/+45 |
| | |||||
* | Show correct date/time for messages | Trygve Aaberge | 2024-02-18 | 2 | -12/+31 |
| | |||||
* | Don't print message to buffer if history isn't printed | Trygve Aaberge | 2024-02-18 | 2 | -2/+19 |
| | | | | | If new messages are printed before the history, they will remain at the top of the buffer after the history is printed. | ||||
* | Reset conversation state on buffer close | Trygve Aaberge | 2024-02-18 | 1 | -1/+10 |
| | |||||
* | Add -data option to /slack debug error to print rtm event data | Trygve Aaberge | 2024-02-18 | 4 | -24/+73 |
| | |||||
* | Use Optional instead of Union with None | Trygve Aaberge | 2024-02-18 | 2 | -12/+12 |
| | |||||
* | Add messages received over rtm to channels | Trygve Aaberge | 2024-02-18 | 4 | -14/+164 |
| | |||||
* | Prefix private class methods with _ | Trygve Aaberge | 2024-02-18 | 2 | -8/+8 |
| | |||||
* | Return immediately from connect if connected | Trygve Aaberge | 2024-02-18 | 1 | -0/+2 |
| | |||||
* | Record uncaught errors and add command to display them | Trygve Aaberge | 2024-02-18 | 6 | -12/+79 |
| | |||||
* | Reconnect when loosing connection | Trygve Aaberge | 2024-02-18 | 2 | -8/+13 |
| | |||||
* | Include a comment about the original source in the built script | Trygve Aaberge | 2024-02-18 | 2 | -4/+8 |
| | |||||
* | Use perl instead of awk to join multiline imports | Trygve Aaberge | 2024-02-18 | 1 | -1/+1 |
| | | | | | Unline the awk command, this works as intended and only joins the imports. | ||||
* | Handle multiline and indented imports in build.sh | Trygve Aaberge | 2024-02-18 | 1 | -2/+6 |
| | | | | | | | | This is pretty hacky, the awk script joins some lines it shouldn't so I should look into that, but now it works without manual changes at least. Any indented import is assumed to be within `if TYPE_CHECKING` and replaced with `pass`. | ||||
* | Warn when failed tasks are not awaited | Trygve Aaberge | 2024-02-18 | 1 | -2/+23 |
| | | | | | | | | | | | | | | If the task runner has finished all running/active tasks, there shouldn't be any tasks that hasn't been awaited. If there were (e.g. create_task was used when run_async should have been used), exceptions from those tasks would be silently ignored, so warn about this. The difference between running and active tasks is that active tasks are tasks waiting for a future to resolve, while running tasks include the currently running task. E.g. if task A creates a new task, B, and task B fails before task A has finished, task A won't be in active tasks, so therefore we need a different set to keep track of the running tasks. | ||||
* | Remove unnecessary checks for dict keys | Trygve Aaberge | 2024-02-18 | 3 | -11/+11 |
| | | | | | With pyright v1.1.292 or later these checks are no longer necessary (they were never necessary for the runtime, only added for pyright). | ||||
* | Remove explicitly setting ca_certs for websocket-client | Trygve Aaberge | 2024-02-18 | 1 | -9/+0 |
| | | | | | | | | As far as I can see, this is no longer necessary with v0.36.0 or later[0]. I assume anyone with new enough Python version to run this will have at least this version. [0]: https://github.com/websocket-client/websocket-client/commit/b614606b35a9b336875e46fe6d4e856392cb9b71 | ||||
* | Don't send response into coroutine | Trygve Aaberge | 2024-02-18 | 1 | -16/+13 |
| | | | | It's now set with set_result/set_exception instead. | ||||
* | Simplify gather and return immediately on exception | Trygve Aaberge | 2024-02-18 | 1 | -24/+10 |
| | |||||
* | Don't allow /slack (dis)connect when connecting/(dis)connected | Trygve Aaberge | 2024-02-18 | 2 | -21/+54 |
| | |||||
* | Sleep for 100 ms instead of 10 ms in http | Trygve Aaberge | 2024-02-18 | 1 | -1/+1 |
| | |||||
* | Sleep for 1 ms if 0 ms is specified | Trygve Aaberge | 2024-02-18 | 1 | -3/+2 |
| | | | | | | | | asyncio.sleep(0) is used to move the task to the back of the event loop. This sleep can be used for the same, however if 0 is specified, WeeChat never calls the callback. This means that the task will silently not continue which is very bad, so make it sleep for 1 ms instead, which is practically the same. | ||||
* | Simplify setting future_id | Trygve Aaberge | 2024-02-18 | 1 | -4/+1 |
| | |||||
* | Log failed async tasks more robustly | Trygve Aaberge | 2024-02-18 | 4 | -35/+22 |
| | |||||
* | Don't set future result in __await__ | Trygve Aaberge | 2024-02-18 | 4 | -46/+95 |
| | |||||
* | Make Future very similar to asyncio.Future | Trygve Aaberge | 2024-02-18 | 2 | -25/+101 |
| | |||||
* | Cancel connecting when disconnect is called | Trygve Aaberge | 2024-02-18 | 2 | -2/+25 |
| | |||||
* | Make ws and hook internal and instantiate them to None | Trygve Aaberge | 2024-02-18 | 2 | -18/+38 |
| | |||||
* | Add command /slack disconnect | Trygve Aaberge | 2024-02-18 | 3 | -0/+25 |
| | |||||
* | Only connect to all teams in /slack connect when -all is given | Trygve Aaberge | 2024-02-18 | 1 | -3/+3 |
| | |||||
* | Simplify Literal declarations | Trygve Aaberge | 2024-02-18 | 1 | -9/+7 |
| | |||||
* | Replace some usages of Any with proper types | Trygve Aaberge | 2024-02-18 | 6 | -22/+23 |
| | |||||
* | Simplify is_member check | Trygve Aaberge | 2024-02-18 | 1 | -1/+1 |
| | |||||
* | Assume some unknown lists from slack to be list of strings | Trygve Aaberge | 2024-02-18 | 2 | -4/+4 |
| | |||||
* | Fix some mypy specific type issues | Trygve Aaberge | 2024-02-18 | 6 | -21/+28 |
| | |||||
* | Make conversation.name an async function so it always works | Trygve Aaberge | 2024-02-18 | 2 | -48/+67 |
| |