bot icon indicating copy to clipboard operation
bot copied to clipboard

Add an optional argument for the resources command

Open 15696 opened this issue 4 years ago • 3 comments

This could be useful when someone asks for Python videos, someone could then proceed to type !resources watch or !resources videos and the Python bot would link the Watch part of the resources page. It's a small change but it could save a step.

image

15696 avatar Dec 13 '20 22:12 15696

I think another way of doing it would be so that individual resources could also be passed, for example someone could invoke the command like !resources realpython and if realpython is not one of the 8 sections on the resources page (watch, podcasts, try, etc) it would attempt to get the closest match (which is realpython.com in the Communities section)

15696 avatar Dec 13 '20 22:12 15696

I put this currently to stalled and planning status. We can currently discuss, is this good feature and worth implementing, but until Dewikification project is done, nothing can be actually done. Currently resources is stored in HTML article and there is not way to fetch these without writing complex HTML parsers. After Dewikification is done, we are able to build simple API for such data.

ks129 avatar Dec 19 '20 09:12 ks129

~~This feature is now implemented by:~~

  • #2117
  • For: #2079

~~I believe this issue can be closed.~~

My bad, this issue suggests implementing the type filter whereas we currently support only topics.

hedyhli avatar Mar 23 '24 02:03 hedyhli