Skip to content

Commit

Permalink
Merge pull request #25 from juniorguru/honzajavorek-patch-1
Browse files Browse the repository at this point in the history
Logging fine-tuning
  • Loading branch information
honzajavorek committed Aug 8, 2023
2 parents 3d9ef9f + aef9788 commit c3f525a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions juniorguru_chick/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ async def on_message(message: discord.Message) -> None:
logger.info("Message sent by the bot itself, skipping")
return
if message.guild is None:
logger.info("DM, responding with a canned message")
try:
response = ("Píp píp píp! Jsem jen malé kuřátko, které neumí číst soukromé zprávy a odpovídat na ně. "
"Tvou zprávu si nikdo nepřečte. Pokud se chceš na něco zeptat, zkus kanál "
"https://discord.com/channels/769966886598737931/806215364379148348 "
"nebo napiš do soukromé zprávy komukoliv z moderátorů. Rádi tě nasměrují.")
await message.reply(response)
except discord.errors.Forbidden:
pass
logger.info("Skipping responding, the user has private DM's disabled")
logger.warning("User has DMs disabled, skipping")
return
if is_thread_created(message) or message.is_system():
logger.info("System message, skipping")
Expand Down

0 comments on commit c3f525a

Please sign in to comment.