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 bbcc156 commit 66f60b4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/Miha.Discord/Services/Hosted/GuildEventScheduleService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,6 @@ public GuildEventScheduleService(
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{
await Client.WaitForReadyAsync(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 66f60b4

Please sign in to comment.