[commands] Register cog listeners with the name of the attribute.

This commit is contained in:
Rapptz 2017-02-22 20:11:01 -05:00
parent 67912193ec
commit 9cb89f019e

View File

@ -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.