27 lines
715 B
Python
27 lines
715 B
Python
import threading
|
|
|
|
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
|
|
|
|
import login
|
|
import synapsemessagepush
|
|
|
|
lifecycles ={}
|
|
|
|
|
|
lifecycles[rmassmonitor.name] = {}
|
|
lifecycles[rmassmonitor.name]["mode"] = "continuous"
|
|
thread, lifecycles = buildThread(rmassmonitor, lifecycles)
|
|
|
|
lifecycles[refresh_tokens.name] = {}
|
|
lifecycles[refresh_tokens.name]["mode"] = "continuous"
|
|
thread, lifecycles = buildThread(refresh_tokens, lifecycles)
|
|
|
|
thread = threading.Thread(
|
|
target=startServer,
|
|
#args=(module, lifecycles)
|
|
name="RMASS Bridge Server"
|
|
)
|
|
thread.start() |