-
-
Save Bhargav-Rao/b58ea051ee468d2ecb9e00f4f6d7be98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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