Skip to content

Commit

Permalink
[InstantCommands] Fix listener names that are used on cog load (#77)
Browse files Browse the repository at this point in the history
* [InstantCommands] Fix listener names that are used on cog load

* Bump to next minor version

Co-authored-by: El Laggron <laggron42@gmail.com>
  • Loading branch information
Jackenmen and laggron42 committed Jun 1, 2020
1 parent c8c62f9 commit cfbc708
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions instantcmd/instantcmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(self, bot):
self._init_logger()

__author__ = ["retke (El Laggron)"]
__version__ = "1.1.1"
__version__ = "1.1.2"

def _init_logger(self):
log_format = logging.Formatter(
Expand Down Expand Up @@ -138,7 +138,7 @@ def load_command_or_listener(self, function):
else:
if not isinstance(function, Listener):
function = Listener(function, function.__name__)
self.bot.add_listener(function.func)
self.bot.add_listener(function.func, name=function.name)
self.listeners[function.func.__name__] = (function.id, function.name)
if function.name != function.func.__name__:
log.debug(
Expand Down

0 comments on commit cfbc708

Please sign in to comment.