diff --git a/src/commands/StatusCommand.tsx b/src/commands/StatusCommand.tsx index a8399db3..b5457697 100644 --- a/src/commands/StatusCommand.tsx +++ b/src/commands/StatusCommand.tsx @@ -97,7 +97,7 @@ defineMatrixInterfaceAdaptor({ renderer: async function (this: MatrixInterfaceAdaptor, client: MatrixSendClient, commandRoomId: string, event: any, result: CommandResult): Promise { const renderState = (state: StatusInfo['state']) => { const notRunning = (text: string) => { - return Running: ❌ (${text})
+ return Running: ❌ (${text})
}; switch (state) { case STATE_NOT_STARTED: @@ -107,7 +107,7 @@ defineMatrixInterfaceAdaptor({ case STATE_SYNCING: return notRunning('syncing lists'); case STATE_RUNNING: - return Running:
+ return Running:
default: return notRunning('unknown state'); } @@ -120,7 +120,7 @@ defineMatrixInterfaceAdaptor({ }); return - {header}
+ {header}
    {listInfo.length === 0 ?
  • None
  • : listInfo}
@@ -130,15 +130,16 @@ defineMatrixInterfaceAdaptor({ await renderMatrixAndSend( {renderState(info.state)} - Protected Rooms: {info.numberOfProtectedRooms}
+ Protected Rooms: {info.numberOfProtectedRooms}
{renderPolicyLists('Subscribed policy lists', info.subscribedLists)} {renderPolicyLists('Subscribed and protected policy lists', info.subscribedAndProtectedLists)} - Version: {info.version}
- Repository: {info.repository}
+ Version: {info.version}
+ Repository: {info.repository}
+ Draupnir project: https://github.com/Gnuxie/Draupnir
, - commandRoomId, - event, - client); + commandRoomId, + event, + client); } }); @@ -151,10 +152,10 @@ defineInterfaceCommand({ acceptor: findPresentationType("string") }, ], - new RestDescription( - "subcommand", - findPresentationType("any") - )), + new RestDescription( + "subcommand", + findPresentationType("any") + )), command: async function ( this: MjolnirContext, _keywords, protectionName: string, ...subcommands: string[] ): Promise>>> { @@ -169,7 +170,7 @@ defineInterfaceCommand({ defineMatrixInterfaceAdaptor({ interfaceCommand: findTableCommand("mjolnir", "status", "protection"), - renderer: async function(client, commandRoomId, event, result) { + renderer: async function (client, commandRoomId, event, result) { tickCrossRenderer.call(this, ...arguments); if (result.isErr()) { return; // tickCrossRenderer will handle it.