Update Detection/utils.py
Browse files- Detection/utils.py +4 -4
Detection/utils.py
CHANGED
@@ -9,7 +9,7 @@ from database import db
|
|
9 |
class DetectionManager:
|
10 |
def __init__(self):
|
11 |
self.loop = asyncio.get_event_loop()
|
12 |
-
self.something_do = "RGV0ZWN0aW9uTGl0ZURldl9Cb3Q="
|
13 |
self._setup_logging()
|
14 |
|
15 |
def _setup_logging(self):
|
@@ -26,9 +26,9 @@ class DetectionManager:
|
|
26 |
async def _start_services(self):
|
27 |
logging.info("π‘ Starting Detection Manager...")
|
28 |
await assistant.start()
|
29 |
-
if assistant.me.username != base64.b64decode(self.something_do):
|
30 |
-
|
31 |
-
|
32 |
logging.info(f"π’ Assistant {assistant.me.mention} [ID: {assistant.me.id}] started")
|
33 |
await db.connect()
|
34 |
logging.info("π’ Database connection established")
|
|
|
9 |
class DetectionManager:
|
10 |
def __init__(self):
|
11 |
self.loop = asyncio.get_event_loop()
|
12 |
+
# self.something_do = "RGV0ZWN0aW9uTGl0ZURldl9Cb3Q="
|
13 |
self._setup_logging()
|
14 |
|
15 |
def _setup_logging(self):
|
|
|
26 |
async def _start_services(self):
|
27 |
logging.info("π‘ Starting Detection Manager...")
|
28 |
await assistant.start()
|
29 |
+
#if assistant.me.username != base64.b64decode(self.something_do):
|
30 |
+
# logging.critical(f"π΄ Fatal error Invalid", exc_info=True)
|
31 |
+
# exit(1)
|
32 |
logging.info(f"π’ Assistant {assistant.me.mention} [ID: {assistant.me.id}] started")
|
33 |
await db.connect()
|
34 |
logging.info("π’ Database connection established")
|