Skip to content

Commit 47cc9ad

Browse files
committed
squashme use sopelwrapper
1 parent e629693 commit 47cc9ad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sopel/modules/url.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from urllib3.exceptions import LocationValueError # type: ignore[import]
2222

2323
from sopel import plugin, tools
24-
from sopel.bot import Sopel
24+
from sopel.bot import Sopel, SopelWrapper
2525
from sopel.config import Config, types
2626
from sopel.tools import web
2727
from sopel.trigger import Trigger
@@ -149,7 +149,7 @@ def shutdown(bot: Sopel):
149149
@plugin.example('.urlpexclude example\\.com/\\w+', user_help=True)
150150
@plugin.example('.urlexclude example.com/path', user_help=True)
151151
@plugin.output_prefix('[url] ')
152-
def url_ban(bot: Sopel, trigger: Trigger):
152+
def url_ban(bot: SopelWrapper, trigger: Trigger):
153153
"""Exclude a URL from auto title.
154154
155155
Use ``urlpexclude`` to exclude a pattern instead of a URL.
@@ -194,7 +194,7 @@ def url_ban(bot: Sopel, trigger: Trigger):
194194
@plugin.example('.urlpallow example\\.com/\\w+', user_help=True)
195195
@plugin.example('.urlallow example.com/path', user_help=True)
196196
@plugin.output_prefix('[url] ')
197-
def url_unban(bot: Sopel, trigger: Trigger):
197+
def url_unban(bot: SopelWrapper, trigger: Trigger):
198198
"""Allow a URL for auto title.
199199
200200
Use ``urlpallow`` to allow a pattern instead of a URL.
@@ -241,7 +241,7 @@ def url_unban(bot: Sopel, trigger: Trigger):
241241
'Google | www.google.com',
242242
online=True, vcr=True)
243243
@plugin.output_prefix('[url] ')
244-
def title_command(bot: Sopel, trigger: Trigger):
244+
def title_command(bot: SopelWrapper, trigger: Trigger):
245245
"""
246246
Show the title or URL information for the given URL, or the last URL seen
247247
in this channel.
@@ -281,7 +281,7 @@ def title_command(bot: Sopel, trigger: Trigger):
281281

282282
@plugin.rule(r'(?u).*(https?://\S+).*')
283283
@plugin.output_prefix('[url] ')
284-
def title_auto(bot: Sopel, trigger: Trigger):
284+
def title_auto(bot: SopelWrapper, trigger: Trigger):
285285
"""
286286
Automatically show titles for URLs. For shortened URLs/redirects, find
287287
where the URL redirects to and show the title for that (or call a function

0 commit comments

Comments
 (0)