From 99509d9839ccdf6d5586ceddb26e365a79c0ce98 Mon Sep 17 00:00:00 2001
From: Linwenxuan <116782992+Linwenxuan05@users.noreply.github.com>
Date: Sat, 11 Nov 2023 23:57:38 +0800
Subject: [PATCH] [OneBot] Start the ILagrangeWebService when the Bot is online

---
 Lagrange.OneBot/LagrangeApp.cs | 5 +++--
 README.md                      | 4 ++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/Lagrange.OneBot/LagrangeApp.cs b/Lagrange.OneBot/LagrangeApp.cs
index 580efe407..78ee7f18b 100644
--- a/Lagrange.OneBot/LagrangeApp.cs
+++ b/Lagrange.OneBot/LagrangeApp.cs
@@ -65,11 +65,12 @@ internal LagrangeApp(IHost host)
             Logger.LogInformation($"Bot Online: {keystore.Uin}");
             string json = JsonSerializer.Serialize(keystore, new JsonSerializerOptions { WriteIndented = true });
             
+            // Adapters should be started here instead of at the start of application
+            await WebService.StartAsync(cancellationToken);
+            
             await File.WriteAllTextAsync(Configuration["ConfigPath:Keystore"] ?? "keystore.json", json, cancellationToken);
         };
         
-        await WebService.StartAsync(cancellationToken);
-        
         if (string.IsNullOrEmpty(Configuration["Account:Password"]) &&
             Instance.ContextCollection.Keystore.Session.TempPassword == null) // EasyLogin and PasswordLogin is both disabled
         {
diff --git a/README.md b/README.md
index 8de25a389..1b388b098 100644
--- a/README.md
+++ b/README.md
@@ -73,7 +73,7 @@ Please use Lagrange.Core responsibly and in accordance with the law.
 | [Music]          |    🔴    |
 | [Reply]          |    🔴    |
 | [Forward]        |    🟢    |
-| [Node]           |    🔴    |
+| [Node]           |    🟢    |
 | [Xml]            |    🔴    |
 | [Json]           |    🔴    |
 
@@ -234,7 +234,7 @@ Please use Lagrange.Core responsibly and in accordance with the law.
 | CommunicationType  | Support |
 | ------------------ | :-----: |
 | [Http]             |    🔴    |
-| [Http-Post]        |    🟢    |
+| [Http-Post]        |    🔴    |
 | [ForwardWebSocket] |    🟢    |
 | [ReverseWebSocket] |    🟢    |