Advanced Twitter Recognition

Control Thumbnail

How To Download and Use This Control

  1. Make sure you have the latest version of EZ-Builder installed.
  2. Select the Install button below to download the file.
  3. Double click the downloaded file to open installer.
  4. The installer will add this control to EZ-Builder.

Retrieve twitter tweets and process them to have your robot do cool stuff via twitter posts. This plugin accepts two controlcommand() for retrieving either the latest mention or latest tweet.

*Note: Requires EZ-Builder 2019.06.25.00 or later.

Give EZ-Builder Twitter Access
This control requires the EZ-Builder application to be given access to communicate with Twitter's API. This is done by using the top menu and selecting OPTIONS -> TWITTER to configure access.
User-inserted image



Mention
A latest mention is when another twitter account sends a message via @UserName to your account. This allows anyone who sends a tweet tagging your @username will be retrieved.

Tweet
A tweet is only tweets from your account. This means only tweets from your account will be retrieved.

Variables
The plugin will specify three variables containing the Screen Name, Message and Status. You may use the Status variable to check if there is a new message to process. The Screen Name is the author of the message, which may be yours if querying Tweets otherwise it will be another author if it is a Mention. 

User-inserted image


Example
This Blockly example queries the latest tweet that you have created from your account and speaks out of the PC speaker.
User-inserted image



This Blockly example queries the latest mention that someone tagged your username. This also includes if you tagged yourself.
User-inserted image


A more advanced Blockly code snippet will continually check the account every 5 seconds for movement commands. The commands supported in this code are forward, left, or right.
User-inserted image