Cog-Creators / Cog-Creators/Red-DiscordBot
"[p]seek 00:00" doesn't work
- Dominant language
- Python
- Stars
- 5.7k
- Forks
- 2.5k
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 1
Description
### What Red version are you using?
3.5.24
### Cog name
Audio
### Command name
seek
### What did you expect to happen?
Since the command help shows `00:00` and `00:00:00` as examples, and indeed I want to return to the start of the track, I expected that to work.
### What actually happened?
"Invalid input for the time to seek."
### How can we reproduce this error?
1. Install and boot up an instance of Red
3. Play any track with the Audio cog
4. Use `[p]seek 00:00`
### Anything else?
The current alternative is either `[p]seek 00:01` or `[p]seek -1000000000`
Relevant code is: https://github.com/Cog-Creators/Red-DiscordBot/blob/61484f28f7fcfff81309cb2b0b0d5287c921f1ad/redbot/cogs/audio/core/commands/controller.py#L354
Screenshot:
Contributor guide
Research direction
Start in redbot/cogs/audio/core/commands/controller.py around the referenced seek command and reproduce the failure with [p]seek 00:00 on a playing track. Trace how the time argument is parsed, then verify that both documented zero-time formats seek to the beginning without an invalid-input error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 82/100