sopel-irc / sopel

:robot::speech_balloon: An easy-to-use and highly extensible IRC Bot framework. Formerly Willie.
https://sopel.chat
Other
948 stars 402 forks source link

sopel: don't use bot.search_url_callbacks internally #2635

Open Exirel opened 1 month ago

Exirel commented 1 month ago

Description

Both coretasks and url used bot.search_url_callbacks, that was deprecated some time ago and wants to emit warning in Sopel 8.1. Because it was used, we didn't bump Sopel's version to 8.1.0.dev0 yet, and that was annoying.

Therefore, I replaced that by a direct access to the private attribute _url_callbacks, and then bumped to Sopel 8.1.0.dev0. And by the way, we should be able to remove bot.call in Sopel 9.

Thank you for your service, register_url_callback, but I can't wait to remove you and your sister methods!

Checklist