Skip to content

Commit

Permalink
chore: ♻️ update response
Browse files Browse the repository at this point in the history
  • Loading branch information
AkashRajpurohit committed Nov 7, 2024
1 parent 09ae1f9 commit 117fe78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,14 @@ app.post('/slack/giffy', async (c) => {
response_type: 'in_channel',
attachments: [
{
title: `Here is your GIF for "${text}"`,
image_url: url,
},
],
}),
});

// Send acknowledgment to Slack
return c.json({ text: 'Generating your GIF...' });
return c.text('ok', 200);
} catch (error) {
console.error('Error fetching GIF:', error);
return c.json({
Expand Down

0 comments on commit 117fe78

Please sign in to comment.