|
@ -30,6 +30,9 @@ class Bot { |
|
|
case "SYNCING": |
|
|
case "SYNCING": |
|
|
logger.debug("Syncing") |
|
|
logger.debug("Syncing") |
|
|
break; |
|
|
break; |
|
|
|
|
|
case "RECONNECTING": |
|
|
|
|
|
logger.debug("Reconnecting"); |
|
|
|
|
|
break; |
|
|
default: |
|
|
default: |
|
|
logger.error("Unexpected sync state: %s", state); |
|
|
logger.error("Unexpected sync state: %s", state); |
|
|
process.exit(1); |
|
|
process.exit(1); |
|
@ -50,11 +53,13 @@ class Bot { |
|
|
return this; |
|
|
return this; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
connect() { |
|
|
|
|
|
|
|
|
async connect() { |
|
|
// logger.info("Initializing Crypto");
|
|
|
// logger.info("Initializing Crypto");
|
|
|
// await bot.client.initCrypto();
|
|
|
// await bot.client.initCrypto();
|
|
|
logger.info("Starting Matrix SDK Client"); |
|
|
logger.info("Starting Matrix SDK Client"); |
|
|
this.client.startClient(); |
|
|
|
|
|
|
|
|
await this.client.startClient({ |
|
|
|
|
|
initialSyncLimit: 0 |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
sendStatusStartup() { |
|
|
sendStatusStartup() { |
|
|