[commands] Register cog listeners with the name of the attribute.
This commit is contained in:
parent
67912193ec
commit
9cb89f019e
@ -470,7 +470,7 @@ class BotBase(GroupMixin):
|
|||||||
|
|
||||||
# register event listeners the cog has
|
# register event listeners the cog has
|
||||||
if name.startswith('on_'):
|
if name.startswith('on_'):
|
||||||
self.add_listener(member)
|
self.add_listener(member, name)
|
||||||
|
|
||||||
def get_cog(self, name):
|
def get_cog(self, name):
|
||||||
"""Gets the cog instance requested.
|
"""Gets the cog instance requested.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user