diff --git a/src/routes/bot.ts b/src/routes/bot.ts index a4497de..6295d92 100644 --- a/src/routes/bot.ts +++ b/src/routes/bot.ts @@ -7,7 +7,7 @@ const bot = async (req: Request) => { const body = await req.text(); const hookData = JSON.parse(body); const { channel, author, text, mentioned_profiles, hash } = hookData.data; - console.log("/bot received new request! Date: " + new Date() + ' hash: ' + hash + ' author: ' + author.username + ' text: ' + text + ' channel: ' + channel.name); + console.log("/bot received new request! Date: " + new Date() + ' hash: ' + hash + ' author: ' + author?.username + ' text: ' + text + ' channel: ' + channel?.name); if (author.username === process.env.PRAISE_FARCASTER_HANDLE) { // The bot should not reply to itself console.log("The bot should not reply to itself! Date: " + new Date());