null404org / discord_google_calendar_bot

Discord bot that pushes scheduled events to Google Calendar
GNU General Public License v3.0
2 stars 1 forks source link

Error Creating Reccuring Event #25

Open Fummowo opened 1 month ago

Fummowo commented 1 month ago

I have a couple recurring events in the server I am attempting to add the bot to, it has managed to create 4 of the 9 events, however it is now seemingly getting stuck creating the next one.

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/discord/client.py", line 449, in _run_event
    await coro(*args, **kwargs)
  File "/app/discord_google_calendar_bot.py", line 354, in on_ready
  File "/app/discord_google_calendar_bot.py", line 169, in create_google_event
    recurrence_rule = get_scheduled_event_recurrence_rule(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/discord_google_calendar_bot.py", line 112, in get_scheduled_event_recurrence_rule
    if event_data["recurrence_rule"] is not None:
       ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
KeyError: 'recurrence_rule'
ERROR:discord.client:Ignoring exception in on_ready
    create_google_event(discord_event)
warelock2 commented 1 month ago

@Fummowo Right-click your Discord server, copy the server ID, and paste it here. I'll take a look.