Skip to content

Commit

Permalink
Added logging for holidays cog (#169)
Browse files Browse the repository at this point in the history
* Added logging for holidays cog

* Extra log was not necessary

* Caught out by the style guide once more
  • Loading branch information
JamesDearlove authored Oct 17, 2023
1 parent cd5b338 commit c616225
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions uqcsbot/holidays.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,11 @@ async def holiday(self):
Posts a random celebratory day on #general from
https://www.timeanddate.com/holidays/fun/
"""
logging.info("Running daily holiday task")

holiday = get_holiday()
if holiday is None:
logging.info("No holiday was found for today")
return

general_channel = discord.utils.get(
Expand Down

0 comments on commit c616225

Please sign in to comment.