2016-12-04 14:13:04 +01:00
|
|
|
from src.handler.commands.base import Base
|
2017-07-25 00:15:20 +02:00
|
|
|
from src.handler.commands.chance import Chance
|
2016-12-04 14:13:04 +01:00
|
|
|
from src.handler.commands.get_stats import GetStats
|
2017-07-25 00:15:20 +02:00
|
|
|
from src.handler.commands.help import Help
|
2016-12-04 14:13:04 +01:00
|
|
|
from src.handler.commands.moderate import Moderate
|
2017-07-25 00:15:20 +02:00
|
|
|
from src.handler.commands.ping import Ping
|
|
|
|
from src.handler.commands.start import Start
|
2016-12-04 14:13:04 +01:00
|
|
|
|
2020-03-24 17:44:48 +01:00
|
|
|
#from src.handler.commands.boobs import Boobs
|
|
|
|
#from src.handler.commands.borscht import Borscht
|
|
|
|
#from src.handler.commands.butts import Butts
|
|
|
|
#from src.handler.commands.facepalm import Facepalm
|
|
|
|
#from src.handler.commands.meow import Meow
|
|
|
|
#from src.handler.commands.vzhuh import Vzhuh
|
|
|
|
#from src.handler.commands.woof import Woof
|
|
|
|
#from src.handler.commands.xkcd import XKCD
|
2017-04-16 15:35:12 +02:00
|
|
|
|
2016-12-04 14:13:04 +01:00
|
|
|
commands = {}
|
|
|
|
for clazz in Base.__subclasses__():
|
|
|
|
command_name = getattr(clazz, 'name')
|
|
|
|
command_aliases = getattr(clazz, 'aliases')
|
2017-08-19 17:19:21 +02:00
|
|
|
instance = clazz()
|
2016-12-04 14:13:04 +01:00
|
|
|
|
2016-12-18 16:55:32 +01:00
|
|
|
if command_name is not None:
|
2017-08-19 17:19:21 +02:00
|
|
|
commands[command_name] = instance
|
2016-12-04 14:13:04 +01:00
|
|
|
for command_alias in command_aliases:
|
2017-08-19 17:19:21 +02:00
|
|
|
commands[command_alias] = instance
|