mirror of
https://github.com/luk3yx/miniirc_matrix.git
synced 2026-05-17 05:25:44 +03:00
Use self._start_main_loop()
This commit is contained in:
@@ -12,7 +12,7 @@ import functools, html.parser, itertools, json, math, re, threading, time, uuid
|
||||
import miniirc, requests, traceback # type: ignore
|
||||
|
||||
|
||||
ver = (0, 0, 1)
|
||||
ver = (0, 0, 2)
|
||||
__version__ = '.'.join(map(str, ver))
|
||||
|
||||
|
||||
@@ -432,7 +432,7 @@ class Matrix(miniirc.IRC):
|
||||
}
|
||||
self.__start_time = math.floor(time.time()) * 1000
|
||||
self.debug('Starting main loop (Matrix)')
|
||||
threading.Thread(target=self._main).start()
|
||||
self._start_main_loop()
|
||||
|
||||
def disconnect(self) -> None:
|
||||
self.connected = False
|
||||
|
||||
4
setup.py
4
setup.py
@@ -5,7 +5,7 @@ from setuptools import setup
|
||||
|
||||
setup(
|
||||
name='miniirc_matrix',
|
||||
version='0.0.1',
|
||||
version='0.0.2',
|
||||
py_modules=['miniirc_matrix'],
|
||||
author='luk3yx',
|
||||
description='A Matrix wrapper for miniirc.',
|
||||
@@ -15,7 +15,7 @@ setup(
|
||||
long_description_content_type='text/markdown',
|
||||
install_requires=[
|
||||
'requests>=2.22.0,<3',
|
||||
'miniirc>=1.7.0,<2',
|
||||
'miniirc>=1.8.0,<2',
|
||||
],
|
||||
python_requires='>=3.8',
|
||||
|
||||
|
||||
Reference in New Issue
Block a user