From d2205d01c201a36c9033c9f8995f7aea554f006d Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Fri, 13 May 2022 08:10:55 -0400 Subject: [PATCH] test --- sopel_SpiceBot_Runtime_query_Commands/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sopel_SpiceBot_Runtime_query_Commands/__init__.py b/sopel_SpiceBot_Runtime_query_Commands/__init__.py index 10dbaff..9abcf92 100644 --- a/sopel_SpiceBot_Runtime_query_Commands/__init__.py +++ b/sopel_SpiceBot_Runtime_query_Commands/__init__.py @@ -4,6 +4,10 @@ def setup(bot, trigger, comrun): return """ `bot.rules.register_command(Command('name', prefix=settings_prefix, plugin="your_plugin_id", ...))` + All you need is to create and register an instance of `sopel.plugins.rules.Command` (or use a subclass) with `bot.rules.register_command(generated_command)`. + + + do a for loop and register commands with the query prefix set in the configuration unregister built-in commands