This commit is contained in:
2024-10-31 14:54:46 +03:30
parent 819ce8ced2
commit 4cb0ada1d0

View File

@@ -24,8 +24,8 @@ public class MastodonBot
var config = configData.fetchData(); var config = configData.fetchData();
if (config==null) if (config==null)
{ {
logger.LogCritical("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 envinonment 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 // Setup DB
@@ -47,7 +47,7 @@ public class MastodonBot
bot.OnMessage += OnMessage; bot.OnMessage += OnMessage;
bot.OnUpdate += OnUpdate; bot.OnUpdate += OnUpdate;
logger.LogInformation("Setup complete");
logger.LogInformation($"Bot is running as {me.FirstName}."); logger.LogInformation($"Bot is running as {me.FirstName}.");
// Handle bot updates // Handle bot updates
@@ -79,8 +79,4 @@ public class MastodonBot
Console.ReadLine(); Console.ReadLine();
} }
}
internal class ConfigData
{
} }