Implemented Synapse Ping as heartbeat for connection between synapse and RMASS Bridge. Also implemented set online action to update RMASS presence
This commit is contained in:
+9
-7
@@ -5,8 +5,8 @@ import os
|
||||
from core.server.server import startServer
|
||||
from core.execution.createthread import buildThread
|
||||
from plugins.rmass.monitors import rmassmonitor
|
||||
#from plugins.rmass.actions import refresh_tokens
|
||||
from plugins.rmass.operations import token_update
|
||||
from plugins.rmass.actions import pingsynapse
|
||||
|
||||
from core.console import console
|
||||
from rich.logging import RichHandler
|
||||
@@ -28,6 +28,13 @@ logging.basicConfig(
|
||||
import login
|
||||
import synapsemessagepush
|
||||
|
||||
thread = threading.Thread(
|
||||
target=startServer,
|
||||
name="RMASS Bridge Server"
|
||||
)
|
||||
thread.start()
|
||||
|
||||
pingsynapse.mode = "continuous"
|
||||
rmassmonitor.mode = "continuous"
|
||||
token_update.mode = "continuous"
|
||||
#refresh_tokens.mode = "continuous"
|
||||
@@ -38,9 +45,4 @@ thread = buildThread(rmassmonitor)
|
||||
|
||||
thread = buildThread(token_update)
|
||||
|
||||
thread = threading.Thread(
|
||||
target=startServer,
|
||||
#args=(module, lifecycles)
|
||||
name="RMASS Bridge Server"
|
||||
)
|
||||
thread.start()
|
||||
thread = buildThread(pingsynapse)
|
||||
Reference in New Issue
Block a user