diff --git a/sopel/bot.py b/sopel/bot.py index 5e9469d52f..779a3f07b4 100644 --- a/sopel/bot.py +++ b/sopel/bot.py @@ -470,7 +470,7 @@ def register(self, callables, jobs, shutdowns, urls): callable_name) if commands: - plugin_name = callbl.__module__.rsplit('.', 1)[-1] + plugin_name = callbl.plugin_name # TODO doc and make decorator for this. Not sure if this is how # it should work yet, so not making it public for 6.0. category = getattr(callbl, 'category', plugin_name)