code: def connected(self, **kwargs):
          
          self.bot.log.info('Server config: %r', self.bot.server_config)
  
          # recompile when I'm sure of my nickname
          self.bot.config['nick'] = kwargs['me']
          self.bot.recompile()
  
          # Let all plugins know that server can handle commands
          self.bot.notify('server_ready')
  
          # detach useless events
          self.bot.detach_events(*self.before_connect_events)
docs: triger the server_ready event