Krobot uses Guice as dependency injection framework. See its doc here.
To register you own modules, provide them to the Krobot#start
method :
Krobot.start(MyBot.class, new MyModule(), new MyOtherModule(), ...);
Krobot defines singletons to use then with dependency injection :
- JDA
- CommandManager
- ConfigProvider
- ExceptionHandler