diff --git a/PluralKit.Bot/Bot.cs b/PluralKit.Bot/Bot.cs index 164249ea..7c25970a 100644 --- a/PluralKit.Bot/Bot.cs +++ b/PluralKit.Bot/Bot.cs @@ -1,6 +1,7 @@ using System; using System.Data; using System.Diagnostics; +using System.IO; using System.Linq; using System.Reflection; using System.Threading; @@ -21,6 +22,8 @@ namespace PluralKit.Bot private IConfiguration _config; static void Main(string[] args) => new Initialize { _config = new ConfigurationBuilder() + .SetBasePath(Directory.GetCurrentDirectory()) + .AddJsonFile("pluralkit.conf", true) .AddEnvironmentVariables() .AddCommandLine(args) .Build()}.MainAsync().GetAwaiter().GetResult(); diff --git a/PluralKit.Core/PluralKit.Core.csproj b/PluralKit.Core/PluralKit.Core.csproj index d772231a..88e25534 100644 --- a/PluralKit.Core/PluralKit.Core.csproj +++ b/PluralKit.Core/PluralKit.Core.csproj @@ -11,6 +11,7 @@ +