onRegister method
Implementation
@override
void onRegister(INyxx nyxx, Logger logger) {
if (!Platform.isWindows) {
_sigtermSubscription = ProcessSignal.sigterm.watch().listen((event) => nyxx.dispose());
}
_sigintSubscription = ProcessSignal.sigint.watch().listen((event) => nyxx.dispose());
logger.info("Starting bot with pid: $pid. To stop the bot gracefully send SIGTERM or SIGKILL");
}