package co.uk.jiveelection.campaign;

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

import java.io.IOException;

/**
 * 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 {

        SpringApplication.run(App.class, args);

        TwitHelper jivebotDavidCameron = new TwitHelper("David_Cameron", TwitConfig.DAVID_JIVERON_ACCESS_TOKEN, TwitConfig.DAVID_JIVERON_ACCESS_TOKEN_SECRET);
        TwitHelper jivebotEdMiliband = new TwitHelper("Ed_Miliband", TwitConfig.ED_JIVEABAND_ACCESS_TOKEN, TwitConfig.ED_JIVEABAND_ACCESS_TOKEN_SECRET);
        TwitHelper jivebotNickClegg = new TwitHelper("nick_clegg", TwitConfig.NICK_JIVEGG_ACCESS_TOKEN, TwitConfig.NICK_JIVEGG_ACCESS_TOKEN_SECRET);
        TwitHelper jivebotTheresaMay = new TwitHelper("theresa_may", TwitConfig.JIVERESA_MAY_ACCESS_TOKEN, TwitConfig.JIVERESA_MAY_ACCESS_TOKEN_SECRET);
        TwitHelper jivebotJeremyCorbyn = new TwitHelper("jeremycorbyn", TwitConfig.JEREMY_JIVEBYN_ACCESS_TOKEN, TwitConfig.JEREMY_JIVEBYN_ACCESS_TOKEN_SECRET);
    }

}

@@ -689,16 +689,34 @@
 args);%0A%0A
+        // GE2015%0A
         
@@ -858,32 +858,32 @@
 _TOKEN_SECRET);%0A
-
         TwitHelp
@@ -1159,32 +1159,51 @@
 S_TOKEN_SECRET);
+%0A%0A        // GE2017
 %0A        TwitHel
@@ -1332,32 +1332,32 @@
 _TOKEN_SECRET);%0A
-
         TwitHelp
@@ -1496,21 +1496,825 @@
 EN_SECRET);%0A
+        TwitHelper jivebotJiveFarron = new TwitHelper(%22timfarron%22, TwitConfig.JIVE_FARRON_ACCESS_TOKEN, TwitConfig.JIVE_FARRON_ACCESS_TOKEN_SECRET);%0A        TwitHelper jivebotJiveolaSturgeon = new TwitHelper(%22NicolaSturgeon%22, TwitConfig.JIVEOLA_STURGEON_ACCESS_TOKEN, TwitConfig.JIVEOLA_STURGEON_ACCESS_TOKEN_SECRET);%0A        TwitHelper jivebotPaulJiveallJivekip = new TwitHelper(%22paulnuttallukip%22, TwitConfig.PAUL_JIVEALL_ACCESS_TOKEN, TwitConfig.PAUL_JIVEALL_ACCESS_TOKEN_SECRET);%0A        TwitHelper jivebotJiveanneWood = new TwitHelper(%22LeanneWood%22, TwitConfig.JIVEANNE_WOOD_ACCESS_TOKEN, TwitConfig.JIVEANNE_WOOD_ACCESS_TOKEN_SECRET);%0A        TwitHelper jivebotJiveolineLucas = new TwitHelper(%22CarolineLucas%22, TwitConfig.JIVEOLINE_LUCAS_ACCESS_TOKEN, TwitConfig.JIVEOLINE_LUCAS_ACCESS_TOKEN_SECRET);%0A
     %7D%0A%0A%7D%0A

Add GE2017 bots