Add discord logs

This commit is contained in:
2024-07-22 03:54:17 +07:00
parent ab621554ce
commit fa7546bb2d
2 changed files with 4 additions and 6 deletions

View File

@@ -104,13 +104,13 @@ builder.Services.AddSwaggerGen(options =>
builder.WebHost.SetupDiscordBot(); builder.WebHost.SetupDiscordBot();
builder.Services.AddHostedService<FeeWorker>(); builder.Services.AddHostedService<FeeWorker>();
builder.Services.AddHostedService<PositionManagerWorker>(); builder.Services.AddHostedService<PositionManagerWorker>();
builder.Services.AddHostedService<PositionFetcher>(); // builder.Services.AddHostedService<PositionFetcher>();
builder.Services.AddHostedService<PricesFiveMinutesWorker>(); builder.Services.AddHostedService<PricesFiveMinutesWorker>();
builder.Services.AddHostedService<PricesFifteenMinutesWorker>(); builder.Services.AddHostedService<PricesFifteenMinutesWorker>();
builder.Services.AddHostedService<PricesOneHourWorker>(); builder.Services.AddHostedService<PricesOneHourWorker>();
builder.Services.AddHostedService<PricesFourHoursWorker>(); // builder.Services.AddHostedService<PricesFourHoursWorker>();
builder.Services.AddHostedService<PricesOneDayWorker>(); builder.Services.AddHostedService<PricesOneDayWorker>();
builder.Services.AddHostedService<SpotlightWorker>(); // builder.Services.AddHostedService<SpotlightWorker>();
builder.Services.AddHostedService<TraderWatcher>(); builder.Services.AddHostedService<TraderWatcher>();
builder.Services.AddHostedService<LeaderboardWorker>(); builder.Services.AddHostedService<LeaderboardWorker>();
builder.Services.AddHostedService<FundingRatesWatcher>(); builder.Services.AddHostedService<FundingRatesWatcher>();

View File

@@ -99,7 +99,7 @@ namespace Managing.Infrastructure.Messengers.Discord
// Discord started as a game chat service, so it has the option to show what games you are playing // Discord started as a game chat service, so it has the option to show what games you are playing
// Here the bot will display "Playing dead" while listening // Here the bot will display "Playing dead" while listening
await _client.SetGameAsync(_settings.BotActivity, "https://moon.com", ActivityType.Playing); await _client.SetGameAsync(_settings.BotActivity, "https://moon.com", ActivityType.Playing);
_logger.LogInformation(JsonConvert.SerializeObject(_settings, Formatting.Indented));
if (!_settings.HandleUserAction) return; if (!_settings.HandleUserAction) return;
List<ApplicationCommandProperties> applicationCommandProperties = new(); List<ApplicationCommandProperties> applicationCommandProperties = new();
@@ -137,8 +137,6 @@ namespace Managing.Infrastructure.Messengers.Discord
public static List<ApplicationCommandProperties> GetSlashCommands() public static List<ApplicationCommandProperties> GetSlashCommands()
{ {
List<ApplicationCommandProperties> commands = new(); List<ApplicationCommandProperties> commands = new();
return commands; return commands;
} }