From 10ce6e5528c51a0b53bf3caeffcf273a4663c2be Mon Sep 17 00:00:00 2001 From: Bhupesh-V Date: Mon, 13 May 2024 14:01:46 +0530 Subject: [PATCH] rollback to default permissions for discord bot --- event-manager/discord_bot.py | 4 ++-- event-manager/google_calendar.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/event-manager/discord_bot.py b/event-manager/discord_bot.py index 67a040e..6d10016 100644 --- a/event-manager/discord_bot.py +++ b/event-manager/discord_bot.py @@ -14,7 +14,7 @@ def create_discord_event( EVENT_END_TIME, ): - bot = commands.Bot(command_prefix="!", intents=discord.Intents.all()) + bot = commands.Bot(command_prefix="!", intents=discord.Intents.default()) @bot.event async def on_ready(): @@ -46,7 +46,7 @@ def create_discord_event( location=EVENT_LOCATION, privacy_level=discord.PrivacyLevel.guild_only, ) - print("Discord Event: ", event.url) + print("Discord Event created: ", event.url) except Exception as e: print(e) diff --git a/event-manager/google_calendar.py b/event-manager/google_calendar.py index f1e432c..6f7eb2e 100644 --- a/event-manager/google_calendar.py +++ b/event-manager/google_calendar.py @@ -50,7 +50,7 @@ def create_google_calendar_event( event = service.events().insert(calendarId=calendar_id, body=event).execute() - print("Google calendar: %s" % (event.get("htmlLink"))) + print("Calendar event created: %s" % (event.get("htmlLink"))) return event except Exception as e: