DEV Community

Cover image for TweetGagger Plugin: getLikes, getRetweets, getReplies
Sojin Samuel
Sojin Samuel

Posted on

2 1 1 1 1

TweetGagger Plugin: getLikes, getRetweets, getReplies

This is a submission for the Coze AI Bot Challenge: Trailblazer.

What I Built

TweetGagger needs an id associated with a TWeet URL to get all the details which includes details of the liking users, retweeting users, replies being made to that particular tweet.

I made this plugin for my GiveAway Picker bot, where it needed to check actions mentioned on a giveaway contest hosted on Twitter where Authors asking users to Like, Retweet and Comment something specific, then a random user(s) get shortlisted for winning prices.

But this isn't just a plugin that usefull for my bot, you can use this to get engagement metrics of a tweet, check for Spamming users who are making irrelevant comments etc

Demo

TweetGagger Plugin
Find the TweetGagger Plugin from Store.

getRetweet function execution response from GiveAwayPicker bot.

Execution

Each functions are triggered only when an action associated with it is mentioned in the Tweet.

Journey

Submitted via Coz Studio, at first it did seem a little scary. But finally I did make it work out.

Thanking Coze for hosting such a wonderful hackathon and this is my last submission to this challenge.

Best of luck to all the participants.

API Trace View

How I Cut 22.3 Seconds Off an API Call with Sentry πŸ•’

Struggling with slow API calls? Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more β†’

Top comments (0)

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay