mirror of
https://github.com/developersIndia/deviras.git
synced 2024-11-23 05:33:12 +05:30
Compare commits
2 Commits
f2b11ddd21
...
17967c3b95
Author | SHA1 | Date | |
---|---|---|---|
|
17967c3b95 | ||
|
10ce6e5528 |
@ -144,7 +144,7 @@ def create_community_roundup_post(
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
title = "Community Roundup: List of must read posts & discussions that happened this month - {month} {year}".format(
|
title = "Community Roundup: List of must read posts & interesting discussions that happened in {month} {year}".format(
|
||||||
month=datetime.date.today().strftime("%B"), year=datetime.date.today().year
|
month=datetime.date.today().strftime("%B"), year=datetime.date.today().year
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ def create_discord_event(
|
|||||||
EVENT_END_TIME,
|
EVENT_END_TIME,
|
||||||
):
|
):
|
||||||
|
|
||||||
bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())
|
bot = commands.Bot(command_prefix="!", intents=discord.Intents.default())
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
@ -46,7 +46,7 @@ def create_discord_event(
|
|||||||
location=EVENT_LOCATION,
|
location=EVENT_LOCATION,
|
||||||
privacy_level=discord.PrivacyLevel.guild_only,
|
privacy_level=discord.PrivacyLevel.guild_only,
|
||||||
)
|
)
|
||||||
print("Discord Event: ", event.url)
|
print("Discord Event created: ", event.url)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
@ -50,7 +50,7 @@ def create_google_calendar_event(
|
|||||||
|
|
||||||
event = service.events().insert(calendarId=calendar_id, body=event).execute()
|
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
|
return event
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user