Skip to content

Instantly share code, notes, and snippets.

@Bhargav-Rao
Created November 1, 2016 13:47
Show Gist options
  • Save Bhargav-Rao/b58ea051ee468d2ecb9e00f4f6d7be98 to your computer and use it in GitHub Desktop.
Save Bhargav-Rao/b58ea051ee468d2ecb9e00f4f6d7be98 to your computer and use it in GitHub Desktop.
package in.bhargavrao.stackoverflow.badger;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import fr.tunaki.stackoverflow.chat.Room;
import fr.tunaki.stackoverflow.chat.StackExchangeClient;
import org.jsoup.Connection;
import org.jsoup.Jsoup;
import java.io.IOException;
import java.time.Instant;
/**
* Created by bhargav.h on 21-Oct-16.
*/
public class RunFiery {
public static String email = "my email ID";
public static String password = "my password";
public static void main(String[] args) {
StackExchangeClient client;
client = new StackExchangeClient(email, password);
Room sobotics = client.joinRoom("stackoverflow.com" ,111347);
try {
while (true) {
sobotics.send("@FireAlarm alive");
Thread.sleep(300000);
}
}
catch (Exception e){
e.printStackTrace();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment