Updated functions in Discord Bot

This commit is contained in:
2023-07-30 22:26:43 +03:00
parent 5254be44be
commit b3d6930142
4 changed files with 17 additions and 8 deletions

View File

@@ -16,6 +16,7 @@ public static class Functions
{
/// <summary>
/// The location for the Resources folder
/// String: ./Data/Resources/
/// </summary>
public static readonly string dataFolder = @"./Data/Resources/";
@@ -125,4 +126,9 @@ public static class Functions
Random random = new();
return values[random.Next(values.Length)];
}
public static string ToResourcesPath(this string path)
{
return Path.Combine(dataFolder, path);
}
}