package co.uk.jiveelection.campaign;

import java.io.IOException;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import twitter4j.TwitterException;
import co.uk.jiveelection.campaign.twit.TwitHelper;

/**
 * Main entry point for the Jive Campaign application. Sets up a continuously running loop that
 * checks the latest tweet from the named candidate, translates it to jive, then tweets it as a
 * jivebot.
 */
@SpringBootApplication
public class App {

	public static void main(String[] args) throws TwitterException, IOException,
			InterruptedException {

		TwitHelper jivebotDavidCameron = new TwitHelper("David_Cameron", "David_Jiveron", TwitConfig.DAVID_JIVERON_ACCESS_TOKEN, TwitConfig.DAVID_JIVERON_ACCESS_TOKEN_SECRET);
		TwitHelper jivebotEdMiliband = new TwitHelper("Ed_Miliband", "Ed_Jiveaband", TwitConfig.ED_JIVEABAND_ACCESS_TOKEN, TwitConfig.ED_JIVEABAND_ACCESS_TOKEN_SECRET);
		TwitHelper jivebotNickClegg = new TwitHelper("nick_clegg", "nick_jivegg", TwitConfig.NICK_JIVEGG_ACCESS_TOKEN, TwitConfig.NICK_JIVEGG_ACCESS_TOKEN_SECRET);

	}

}

@@ -42,30 +42,104 @@
 ort 
-java.io.IOExcep
+co.uk.jiveelection.campaign.twit.TwitHelper;%0Aimport org.springframework.boot.SpringApplica
 tion;%0A
-%0A
 impo
@@ -242,58 +242,35 @@
 on;%0A
+%0A
 import 
-co.uk.jiveelection.campaign.twit.TwitHelper
+java.io.IOException
 ;%0A%0A/
@@ -523,17 +523,20 @@
  App %7B%0A%0A
-%09
+    
 public s
@@ -608,11 +608,20 @@
 on,%0A
-%09%09%09
+            
 Inte
@@ -640,18 +640,73 @@
 tion %7B%0A%0A
-%09%09
+        SpringApplication.run(App.class, args);%0A%0A        
 TwitHelp
@@ -765,25 +765,8 @@
 on%22,
- %22David_Jiveron%22,
  Twi
@@ -840,34 +840,40 @@
 _TOKEN_SECRET);%0A
-%09%09
+        
 TwitHelper jiveb
@@ -920,24 +920,8 @@
 nd%22,
- %22Ed_Jiveaband%22,
  Twi
@@ -1005,10 +1005,16 @@
 T);%0A
-%09%09
+        
 Twit
@@ -1071,23 +1071,8 @@
 gg%22,
- %22nick_jivegg%22,
  Twi
@@ -1154,10 +1154,165 @@
 T);%0A
-%0A%09
+        TwitHelper jivebotTheresaMay = new TwitHelper(%22theresa_may%22, TwitConfig.JIVERESA_MAY_ACCESS_TOKEN, TwitConfig.JIVERESA_MAY_ACCESS_TOKEN_SECRET);%0A    
 %7D%0A%0A%7D

Add Theresa May Jive bot