From 9cb89f019e87945930065c6ee82bd0e83754c76b Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 22 Feb 2017 20:11:01 -0500 Subject: [PATCH] [commands] Register cog listeners with the name of the attribute. --- discord/ext/commands/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 911664f46..733cfec26 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -470,7 +470,7 @@ class BotBase(GroupMixin): # register event listeners the cog has if name.startswith('on_'): - self.add_listener(member) + self.add_listener(member, name) def get_cog(self, name): """Gets the cog instance requested.