Exemple #1
0
    def __init__(self, token, plugin_filespec, proxy=None, debug=False):
        self._update_id = 0
        self._client = AsyncioClient(token, proxy=proxy, debug=debug)

        self._plugins = [p(self._send_method) for p in PluginLoader(BotPlugin, plugin_filespec)]

        self._plugins.sort(key=lambda p: p.priority)
Exemple #2
0
 def setUp(self):
     if self._client is None:
         self._client = AsyncioClient(env.token, env.proxy)