diff --git a/sopel/modules/url.py b/sopel/modules/url.py index 63ba358596..5a18886263 100644 --- a/sopel/modules/url.py +++ b/sopel/modules/url.py @@ -21,7 +21,7 @@ from urllib3.exceptions import LocationValueError # type: ignore[import] from sopel import plugin, tools -from sopel.bot import Sopel +from sopel.bot import Sopel, SopelWrapper from sopel.config import Config, types from sopel.tools import web from sopel.trigger import Trigger @@ -149,7 +149,7 @@ def shutdown(bot: Sopel): @plugin.example('.urlpexclude example\\.com/\\w+', user_help=True) @plugin.example('.urlexclude example.com/path', user_help=True) @plugin.output_prefix('[url] ') -def url_ban(bot: Sopel, trigger: Trigger): +def url_ban(bot: SopelWrapper, trigger: Trigger): """Exclude a URL from auto title. Use ``urlpexclude`` to exclude a pattern instead of a URL. @@ -194,7 +194,7 @@ def url_ban(bot: Sopel, trigger: Trigger): @plugin.example('.urlpallow example\\.com/\\w+', user_help=True) @plugin.example('.urlallow example.com/path', user_help=True) @plugin.output_prefix('[url] ') -def url_unban(bot: Sopel, trigger: Trigger): +def url_unban(bot: SopelWrapper, trigger: Trigger): """Allow a URL for auto title. Use ``urlpallow`` to allow a pattern instead of a URL. @@ -241,7 +241,7 @@ def url_unban(bot: Sopel, trigger: Trigger): 'Google | www.google.com', online=True, vcr=True) @plugin.output_prefix('[url] ') -def title_command(bot: Sopel, trigger: Trigger): +def title_command(bot: SopelWrapper, trigger: Trigger): """ Show the title or URL information for the given URL, or the last URL seen in this channel. @@ -281,7 +281,7 @@ def title_command(bot: Sopel, trigger: Trigger): @plugin.rule(r'(?u).*(https?://\S+).*') @plugin.output_prefix('[url] ') -def title_auto(bot: Sopel, trigger: Trigger): +def title_auto(bot: SopelWrapper, trigger: Trigger): """ Automatically show titles for URLs. For shortened URLs/redirects, find where the URL redirects to and show the title for that (or call a function