Room: Add leave method
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
Research direction
Locate the Room class and inspect the existing methods that perform room actions to follow their patterns. Add the proposed async Room.leave() API, write unit tests under tests/, then run pytest tests/, mypy matrix/, and black .; done means await room.leave() works and the tests pass.
Written by the indexing model from the issue text.
Description
The bot currently has no way to leave a room at runtime. This is a common need, a bot may join a room temporarily, or be invited to one it should decline after inspecting. Room.leave() fills this gap and follows the exact same existing patterns.
Proposed API
async def leave(self) -> None
Example
await room.leave()
Before opening a PR
- Write unit tests
- Run mypy matrix/
- Run pytest tests/
- Run black .
- Dominant language
- Python
- Stars
- 14
- Forks
- 7
- Avg merge
- 8d 19h
- Merged PRs (30d)
- 5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Code-Society-Lab/matrixpy
-
feature good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Code-Society-Lab/matrixpy#105 ·
-
Check: `can_redact` Opengood first issue
Difficulty 3/5 1-2 days Newbie friendliness 68/100
Code-Society-Lab/matrixpy#107 ·
-
Check: `can_invite` Openfeature good first issue
Difficulty 3/5 1-2 days Newbie friendliness 74/100
Code-Society-Lab/matrixpy#106 ·
-
Paginator Openblocked feature
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Code-Society-Lab/matrixpy#101 ·
-
Cooldown Bucket Openfeature
Difficulty 3/5 1-2 days Newbie friendliness 68/100
Code-Society-Lab/matrixpy#100 ·
All issues in Code-Society-Lab/matrixpy
Similar issues
-
bug ci good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
documentation
Difficulty 2/5 Half a day Newbie friendliness 62/100
inmanta/inmanta-core#10835 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
sponsored
Difficulty 2/5 1-3 hours Newbie friendliness 65/100