Skip to content

Commit

Permalink
url: use new bot.make_identifier_memory() helper
Browse files Browse the repository at this point in the history
  • Loading branch information
dgw committed Nov 9, 2023
1 parent acc0bf0 commit 31e1c1e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sopel/builtins/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ def setup(bot: Sopel):

# Ensure last_seen_url is in memory
if 'last_seen_url' not in bot.memory:
bot.memory['last_seen_url'] = tools.SopelIdentifierMemory(
identifier_factory=bot.make_identifier,
)
bot.memory['last_seen_url'] = bot.make_identifier_memory()

# Initialize shortened_urls as a dict if it doesn't exist.
if 'shortened_urls' not in bot.memory:
Expand Down

0 comments on commit 31e1c1e

Please sign in to comment.