示例#1
0
 def load_plugins(self) -> None:
     """Load all Plugins"""
     self._imported.clear()
     _LOG.info(_LOG_STR, "Importing All Plugins")
     for name in get_all_plugins():
         try:
             self.load_plugin(name)
         except ImportError as i_e:
             _LOG.error(_LOG_STR, i_e)
     _LOG.info(_LOG_STR, f"Imported ({len(self._imported)}) Plugins => " + \
         str([i.__name__ for i in self._imported]))
示例#2
0
 async def _load_plugins(self) -> None:
     _IMPORTED.clear()
     _INIT_TASKS.clear()
     logbot.edit_last_msg("Importing All Plugins", _LOG.info, _LOG_STR)
     for name in get_all_plugins():
         try:
             await self.load_plugin(name)
         except ImportError as i_e:
             _LOG.error(_LOG_STR, f"[{name}] - {i_e}")
     await self.finalize_load()
     _LOG.info(_LOG_STR, f"Imported ({len(_IMPORTED)}) Plugins => "
               + str([i.__name__ for i in _IMPORTED]))
示例#3
0
 async def _load_plugins(self) -> None:
     self._imported.clear()
     self._init_tasks.clear()
     _LOG.info(_LOG_STR, "Importing All Plugins")
     for name in get_all_plugins():
         try:
             await self.load_plugin(name)
         except ImportError as i_e:
             _LOG.error(_LOG_STR, i_e)
     await self.finalize_load()
     _LOG.info(
         _LOG_STR, f"Imported ({len(self._imported)}) Plugins => " +
         str([i.__name__ for i in self._imported]))
示例#4
0
 async def _load_plugins(self) -> None:
     _IMPORTED.clear()
     _INIT_TASKS.clear()
     logbot.edit_last_msg("Tüm Eklentiler İçe Aktarıldı", _LOG.info,
                          _LOG_STR)
     for name in get_all_plugins():
         try:
             await self.load_plugin(name)
         except ImportError as i_e:
             _LOG.error(_LOG_STR, f"[{name}] - {i_e}")
     await self.finalize_load()
     _LOG.info(
         _LOG_STR, f"({len(_IMPORTED)})  => Eklentisi içe aktarıldı " +
         str([i.__name__ for i in _IMPORTED]))
示例#5
0
    def load_plugins(self) -> None:
        """
        Load all Plugins.
        """

        self.__imported.clear()

        LOG.info(LOG_STR.format("Importing All Plugins"))

        for name in get_all_plugins():
            try:
                self.load_plugin(name)

            except ImportError as i_e:
                LOG.error(i_e)

        LOG.info(
            LOG_STR.format(
                f"Imported ({len(self.__imported)}) Plugins => " + \
                    str([i.__name__ for i in self.__imported])))