Moved to Json Database for online plugins

This commit is contained in:
2024-02-26 23:36:19 +02:00
parent 196fb6d3d1
commit 14f280baef
16 changed files with 376 additions and 299 deletions

View File

@@ -21,6 +21,17 @@ public static class ServerCom
var lines = response.Split('\n');
return lines.ToList();
}
/// <summary>
/// Get all text from a file async
/// </summary>
/// <param name="link">The link of the file</param>
/// <returns></returns>
public static async Task<string> GetAllTextFromUrl(string link)
{
var response = await OnlineFunctions.DownloadStringAsync(link);
return response;
}
/// <summary>
/// Download file from url