Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | Move SlackErrorResponse into slack_common.pyi | Trygve Aaberge | 2024-02-18 | 13 | -20/+17 |
| | |||||
* | Open all conversation types on start | Trygve Aaberge | 2024-02-18 | 7 | -33/+124 |
| | |||||
* | Support unfurling special mentions (@here/@channel/@everyone) | Trygve Aaberge | 2024-02-18 | 1 | -0/+5 |
| | |||||
* | Support unfurling channels | Trygve Aaberge | 2024-02-18 | 2 | -3/+29 |
| | |||||
* | Simplify SlackMessage._unfurl_refs | Trygve Aaberge | 2024-02-18 | 1 | -47/+22 |
| | |||||
* | Use user group fallback name | Trygve Aaberge | 2024-02-18 | 1 | -3/+7 |
| | |||||
* | Handle user group fetch error | Trygve Aaberge | 2024-02-18 | 3 | -5/+21 |
| | |||||
* | Print error when fetching users/usergroups fail | Trygve Aaberge | 2024-02-18 | 2 | -0/+13 |
| | |||||
* | Improve error printing | Trygve Aaberge | 2024-02-18 | 5 | -15/+37 |
| | |||||
* | Simplify unfurl methods | Trygve Aaberge | 2024-02-18 | 1 | -10/+8 |
| | |||||
* | Support unfurling usergroup names | Trygve Aaberge | 2024-02-18 | 9 | -12/+285 |
| | |||||
* | Remove unnecessary _api properties | Trygve Aaberge | 2024-02-18 | 1 | -9/+1 |
| | |||||
* | Add dev dependencies typing-extensions and pyright | Trygve Aaberge | 2024-02-18 | 2 | -1/+52 |
| | |||||
* | Update dependencies | Trygve Aaberge | 2024-02-18 | 1 | -158/+138 |
| | |||||
* | Fix compatibility with Python 3.7 | Trygve Aaberge | 2024-02-18 | 10 | -15/+21 |
| | |||||
* | Fix compatibility with Python 3.8 | Trygve Aaberge | 2024-02-18 | 2 | -4/+19 |
| | |||||
* | Initial work for matching usergroups | Trygve Aaberge | 2024-02-18 | 2 | -4/+30 |
| | | | | | Doesn't get info/name yet. Apparently there's no API method for getting info for one usergroup... | ||||
* | Remove unnecessary id parameters | Trygve Aaberge | 2024-02-18 | 2 | -17/+11 |
| | |||||
* | Create common parent class for SlackUsers and SlackBots | Trygve Aaberge | 2024-02-18 | 1 | -33/+49 |
| | |||||
* | Color user mentions | Trygve Aaberge | 2024-02-18 | 2 | -1/+16 |
| |