2023-05-01 08:12:50 +00:00
|
|
|
from importlib import import_module
|
|
|
|
|
2023-04-19 06:11:28 +00:00
|
|
|
from .unknown import command_unknown
|
|
|
|
|
2023-05-01 08:12:50 +00:00
|
|
|
COMMANDS = {}
|
|
|
|
|
|
|
|
for command in [
|
|
|
|
"help",
|
|
|
|
"newroom",
|
|
|
|
"stats",
|
|
|
|
"botinfo",
|
|
|
|
"coin",
|
|
|
|
"ignoreolder",
|
|
|
|
"systemmessage",
|
|
|
|
"imagine",
|
|
|
|
"calculate",
|
|
|
|
"classify",
|
|
|
|
"chat",
|
|
|
|
"custom",
|
|
|
|
"privacy",
|
|
|
|
"roomsettings",
|
2023-05-01 15:49:26 +00:00
|
|
|
"dice",
|
2023-05-01 08:12:50 +00:00
|
|
|
]:
|
|
|
|
function = getattr(import_module(
|
|
|
|
"commands." + command), "command_" + command)
|
|
|
|
COMMANDS[command] = function
|
|
|
|
|
|
|
|
COMMANDS[None] = command_unknown
|