Skip to content

Commit

Permalink
remove channel requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
RamRamez committed Oct 10, 2024
1 parent e24847f commit abaaf55
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/routes/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,7 @@ Please mention a Farcaster account to praise for`,
console.log("Replied with error: no Farcaster account mentioned!");
return new Response(`Replied to the cast with error: no Farcaster account mentioned`);
}
if (!channel?.name) {
await neynarClient.publishCast(
process.env.SIGNER_UUID,
`GM ${author.username}!
Please cast in a channel to praise`,
{
replyTo: hash,
}
);
console.log("Replied with error: no channel mentioned!");
return new Response(`Replied to the cast with error: no channel mentioned`);
}
const reason = text.split(praiseReceiver.username)[1]
const query = {
// reason,
// channel: channel.name,
// giver: author.username,
// recipientAddress: praiseReceiver.verified_addresses.eth_addresses[0] || praiseReceiver.custody_address,
// recipientName: praiseReceiver.username,
praiseHash: hash,
};
let reply;
Expand Down

0 comments on commit abaaf55

Please sign in to comment.