Skip to content

Commit

Permalink
Update GuildEventScheduleService.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Twinki14 committed Nov 7, 2023
1 parent b30021a commit 086b30a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Miha.Discord/Services/Hosted/GuildEventScheduleService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken)

var eventsThisWeek = await _scheduledEventService.GetScheduledWeeklyEventsAsync(_discordOptions.Guild.Value, _easternStandardZonedClock.GetCurrentDate());

foreach (var guildScheduledEvent in eventsThisWeek.Value)
{
_logger.LogInformation("Event this week {eventName}, {eventId}, {eventDate}", guildScheduledEvent.Name, guildScheduledEvent.Id, guildScheduledEvent.StartTime.Date.ToShortDateString());
}

_logger.LogInformation("Events this week {events}", eventsThisWeek.Value);

while (!stoppingToken.IsCancellationRequested)
Expand Down

0 comments on commit 086b30a

Please sign in to comment.