def command_notify(self, send_handler, args, kwargs, client_key):
     NotificationManager.notify(self.module_name, ' '.join(args))
     send_handler('notification added.')
 def init(self):
     super().init()
     NotificationManager.register(self.module_name, self.__notify)
     self.register_command('notify', self.command_notify, 'add notification message')
     self.register_command('shutdown', self.command_shutdown, 'shutdown %s process' % settings.NAME)
     self.register_command('uptime', self.command_uptime, 'uptime of %s process' % settings.NAME)