Is It Possible to Link a Discord Bot to the Twitter API to Automatically Give a Role to a User When They Retweet a Tweet?

This topic was automatically generated from Slack. You can find the original thread here.

Hey Guys, i wanted to find out if there was a possibility to link a Discord bot to the Twitter API so that i can do the following action.

Step 1 - User retweets a tweet
Step 2 - Discord will automatically give a specific role to a user

It’s definitely possible, your trigger would be a Retweet of a given tweet.
Then the action taken would be to apply the specified role(s) on Discord.

The only thing you will need to do is somehow link (provide a relationship) between the users discord ID (?) and twitter handle