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-05 11:58:57 +00:00
|
|
|
"parcel",
|
2023-05-09 10:27:03 +00:00
|
|
|
"space",
|
2023-05-01 08:12:50 +00:00
|
|
|
]:
|
|
|
|
function = getattr(import_module(
|
|
|
|
"commands." + command), "command_" + command)
|
|
|
|
COMMANDS[command] = function
|
|
|
|
|
|
|
|
COMMANDS[None] = command_unknown
|