From 4cb0ada1d0476699b2e96fed08e6b26f0f22dacb Mon Sep 17 00:00:00 2001 From: Mohammad Mahdi Mohammadi Date: Thu, 31 Oct 2024 14:54:46 +0330 Subject: [PATCH] fix typo --- Program.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Program.cs b/Program.cs index 8e5a9b7..7ff76f7 100755 --- a/Program.cs +++ b/Program.cs @@ -24,8 +24,8 @@ public class MastodonBot var config = configData.fetchData(); if (config==null) { - logger.LogCritical("Error reading envinonment variables, either some values are missing or no .env file was found"); - throw new Exception("Error reading envinonment variables, either some values are missing or no .env file was found"); + logger.LogCritical("Error reading environment variables, either some values are missing or no .env file was found"); + throw new Exception("Error reading environment variables, either some values are missing or no .env file was found"); } // Setup DB @@ -47,7 +47,7 @@ public class MastodonBot bot.OnMessage += OnMessage; bot.OnUpdate += OnUpdate; - + logger.LogInformation("Setup complete"); logger.LogInformation($"Bot is running as {me.FirstName}."); // Handle bot updates @@ -79,8 +79,4 @@ public class MastodonBot Console.ReadLine(); } -} - -internal class ConfigData -{ } \ No newline at end of file