Skip to content

Commit

Permalink
bot: add deprecation notice to SopelWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
SnoopJ committed Oct 14, 2023
1 parent ec9691b commit 8060ab7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sopel/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1279,6 +1279,14 @@ class SopelWrapper:
their ``bot`` argument. It acts as a proxy, providing the ``trigger``'s
``sender`` (source channel or private message) as the default
``destination`` argument for overridden methods.
.. deprecated:: 8.0
``SopelWrapper`` is being replaced with a ``contextvars`` based
alternative. For more information, see `#2460`__.
.. __: https://github.com/sopel-irc/sopel/issues/2460
"""
def __init__(self, sopel, trigger, output_prefix=''):
if not output_prefix:
Expand Down

0 comments on commit 8060ab7

Please sign in to comment.