sir-lancebot icon indicating copy to clipboard operation
sir-lancebot copied to clipboard

Fix reddit command

Open wookie184 opened this issue 1 year ago • 4 comments

Description

This error is raised when running the reddit command with a custom subreddit, e.g. .reddit top r/python

2024-04-01 16:57:14 \| ERROR \| bot.exts.core.error_handler \| Unhandled command error: 0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://www.reddit.com/subreddits/search.json?q=r/python')

I've not investigated this further yet.

Would you like to implement a fix?

Note: For high-priority or critical bugs, fixes may be implemented by staff.

  • [ ] I'd like to implement the bug fix
  • [x] Anyone can implement the bug fix

wookie184 avatar Apr 01 '24 17:04 wookie184