Skip to content
This repository has been archived by the owner on Nov 27, 2017. It is now read-only.
/ tweetbot Public archive

Software Repository for the course "Technologies for connectivity" [DBSU10], TU/e

Notifications You must be signed in to change notification settings

marzman95/tweetbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tweetbot

TU/e [DBSU10] "Technologies for connectivity"

Software & File repository for group 4 of the course "Technologies for connectivity" [DBSU10], TU/e

API Documentation

API calls through OOCSI

The OOCSI channel we are monitoring is tweetBot. Set up a direct sender to our channel like this:

oocsi = new OOCSI(this, "<Groupname>", "oocsi.id.tue.nl");

Where <Groupname> has to be replaced by your groupname and between double qoutes ".

General tweet

If you want our Tweetbot to simply send out a tweet, use key-value pair with tweet as key, and the text of the tweet you want to send as value. In Processing, it looks like this:

oocsi
  .channel("tweetBot")
  .data("tweet", "text of your tweet here")
  .send();

The tweet text cannot be more than 140 characters. The same tweet cannot be sent twice in a row.

Direct message

Tweetbot can also send Twitters' direct messages. Using this piece of code you can send one. You only need the first line once, since it declares an object that handles the direct messages.

DmHandler dmHandler = new DmHandler(Twitter);
dmHandler.sendDm(String screenName, String message);

API calls through Twitter

Our Twitter handle is @Tweetbot_DBSU10. Send a tweet to @Tweetbot_DBSU10 containing one of the following inputs to achieve the specified result.

Input Result
Deadline Tweetbot replies with the next deadlines for DBSU10.
Order pizza Tweetbot orders you pizza through OOCSI using Group 3's module and tweets you a confirmation.
I want pizza Tweetbot orders you pizza through OOCSI using Group 3's module and tweets you a confirmation.
Order coffee Tweetbot orders you coffee through OOCSI using Group 2's module and tweets you a confirmation.
I want coffee Tweetbot orders you coffee through OOCSI using Group 2's module and tweets you a confirmation.
Help (only on DM) Tweetbot replies with an help-text on the DM's.

Tweets should contain the exact input string, so order me pizza will not work. The API is not case-sensitive, so order pizza will work. An example: Hey @Tweetbot_DBSU10, can you please order pizza for me?

About

Software Repository for the course "Technologies for connectivity" [DBSU10], TU/e

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published