python-discord / bot

The community bot for the Python Discord community
https://pythondiscord.com
MIT License
1.37k stars 673 forks source link

Add an optional argument for the resources command #1324

Open 15696 opened 3 years ago

15696 commented 3 years ago

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 commented 3 years ago

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)

ks129 commented 3 years ago

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.

hedyhli commented 7 months ago

This feature is now implemented by:

I believe this issue can be closed.

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