2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-31 06:26:04 +00:00

add a universal threadpoolexecutor

This commit is contained in:
Nick80835
2020-05-16 22:50:25 -04:00
parent 4be07b2ccc
commit 04db334eba

View File

@@ -1,6 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-or-later
import glob
from concurrent.futures import ThreadPoolExecutor
from importlib import import_module, reload
from os.path import basename, dirname, isfile
from re import escape
@@ -22,6 +23,7 @@ class Loader():
self.command_handler = CommandHandler(client, logger, settings)
self.help_dict = {}
self.aioclient = ClientSession()
self.thread_pool = ThreadPoolExecutor()
self.botversion = "0.1.3"
def load_all_modules(self):