Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
RamRamez committed Aug 23, 2024
1 parent 9283cc6 commit 5f9a584
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/routes/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ 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('--------------------')
console.log('hookData: ', hookData.data)
console.log('--------------------')
const praiseHandle = process.env.PRAISE_FARCASTER_HANDLE;
const praiseReceiver = mentioned_profiles.find((profile: any) => profile.username !== praiseHandle)
if (!praiseReceiver) {
Expand All @@ -37,10 +34,6 @@ const bot = async (req: Request) => {
recipient: praiseReceiver.verified_addresses.eth_addresses[0] || praiseReceiver.custody_address
};

console.log('--------------------')
console.log('query params: ', query)
console.log('--------------------')

const reply = await neynarClient.publishCast(
process.env.SIGNER_UUID,
`gm ${author.username}`,
Expand All @@ -53,18 +46,6 @@ const bot = async (req: Request) => {
replyTo: hash,
}
);

// const reply = await neynarClient.publishCast(
// process.env.SIGNER_UUID,
// `gm Ramin`,
// {
// embeds: [
// {
// url: process.env.APP_URL + routes.frog,
// },
// ],
// }
// );
console.log("Response sent! Date: " + new Date() + ' ' + reply);
return new Response(`Replied to the cast with hash: ${reply.hash}`);
}
Expand Down

0 comments on commit 5f9a584

Please sign in to comment.