Code-Society-Lab / Code-Society-Lab/matrixpy

Scheduler: Add list_jobs method

Open
#78 1 comment 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Python
Stars
14
Forks
7
Avg merge
8d 19h
Merged PRs (30d)
5

Description

There is currently no way to inspect which jobs are registered at runtime. list_jobs() returns their names, which is useful for admin commands or debugging.

### Proposed API
```python
def list_jobs(self) -> list[str]
```

### Example
```python
@bot.command()
async def jobs(ctx: Context):
await ctx.reply("\n".join(bot.scheduler.list_jobs()))
```

### Before opening a PR
- Write unit tests
- Run mypy matrix/
- Run pytest tests/
- Run black .

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.