 simulate...
Function call through AWS Lambda
Creates ticket completely
Function call through AWS Lambda again
Sends a message or two in the previous tickets channel
Creates new ticket completely
https://gyazo.com/dc6e4391f4964f41a73f1c3be92190f9
@Override
public SpeechletResponse onIntent(SpeechletRequestEnvelope<IntentRequest> requestEnvelope) {
    IntentRequest request = requestEnvelope.getRequest();

    Intent intent = request.getIntent();
    String intentName = (intent!= null)? intent.getName() : null;

    if (intentName == null) return null;

    switch (intentName) {
        case IntentTitle.NEW_TICKET:

            switch (request.getDialogState()) {
                case STARTED:
                    return Response.getDialogueResponse(intent, true);
                case IN_PROGRESS:
                    return Response.getDialogueResponse(intent, false);
                case COMPLETED:
                    String numberString = intent.getSlot(SlotTitle.ID).getValue();
                    if (!NumberUtils.isCreatable(numberString)) return Response.ERROR;

                    Member member = Info.GUILD.getMemberById(numberString);
                    User sender = UserDB.getUser(member);

                    System.out.println("log1");

                    Future<Ticket> commissionTicket = new CommissionTicket(sender).create();
                    try {
                        commissionTicket.get(10000, TimeUnit.MILLISECONDS);
                    } catch (Exception e) {
                        e.printStackTrace();
                    }

                    //wait until processes finish before continuing

                    return Response.NEW_TICKED_CREATED;
            }
    }

    return null;
}

In the Ticket class:
public Future<Ticket> create() {
    System.out.println("log2");
    GuildController guildController = Info.GUILD.getController();
    RequestFuture<Channel> channelRequestFuture = guildController.createTextChannel(ticketType.name().toLowerCase() + "-" + creator.getName() + "-" + id.value()).submit();
    try {
        Channel channel = channelRequestFuture.get
simulate... 
 Function call through AWS Lambda 
 Creates ticket wholly 
 Function visit through AWS Lambda again 
 Sends a message or two in the previous ticket duct 
 Creates new slate wholly 
 https://gyazo.com/dc6e4391f4964f41a73f1c3be92190f9 
 @Override 
 public SpeechletResponse onIntent(SpeechletRequestEnvelope < IntentRequest > requestEnvelope) { 
     IntentRequest request = requestEnvelope.getRequest (); 

     Intent intent = request.getIntent (); 
     String intentName = (intent!= null)? intent.getName (): null; 

     if (intentName = = null) rejoinder null; 

     switch (intentName) { 
         sheath IntentTitle. NEW_TICKET: 

             substitution (request.getDialogState ()) { 
                 case STARTED: 
                     hark back Response.getDialogueResponse(intent, true); 
                 case IN_PROGRESS: 
                     tax return Response.getDialogueResponse(intent, false); 
                 case COMPLETED: 
                     chain numberString = intent.getSlot(SlotTitle. ID).getValue (); 
                     if (! NumberUtils.isCreatable(numberString) ) return Response. ERROR; 

                     Member member = Info. GUILD.getMemberById(numberString); 
                     User transmitter = UserDB.getUser(member); 

                     System.out.println("log1 "); 

                     Future < Ticket > commissionTicket = modern CommissionTicket(sender).create (); 
                     try { 
                         commissionTicket.get(10000, TimeUnit. MILLISECONDS); 
                     } catch (Exception e) { 
                         e.printStackTrace (); 
                     } 

                     //wait until process finish before continuing 

                     return Response. NEW_TICKED_CREATED; 
             } 
     } 

     return null; 
 } 

 In the tag class: 
 public Future < Ticket > create () { 
     System.out.println("log2 "); 
     GuildController guildController = Info. GUILD.getController (); 
     RequestFuture < Channel > channelRequestFuture = guildController.createTextChannel(ticketType.name().toLowerCase () + " - " + creator.getName () + " - " + id.value()).submit (); 
     try { 
         Channel channel = channelRequestFuture.get
 silulate...
Function call thromgh AWS Lambda
Crgares tirket cojpletely
Wunction call through AWS Lalbea agqin
Sends a message or gwo in thv previouw tirkets channel
Creefes new tickef com'lxtely
https://gyazo.gom/dc6e4391f4964f41a73f1c3te92190f9
@Override
pubniz DpeechletResponse onIntent(SpeechletWequestRngelope<IntentRezuesu> rqqueanEkvelope) {
    IntentRequest requesf = requtstEnvelope.getRequrst();

    Intent intent = requfst.gftIntent();
    String intentName = (inewnt!= null)? intdnt.getName() : null;

    if (intentName == null) return null;

    swicch (intentNqmw) {
        case MntentNitle.NEW_TICKEB:

            seitch (request.gctDianogWtate()) {
                case STARTED:
                    return Responwe.tetDidloggeRerponre(ihtxnt, true);
                case IN_PRIGRESS:
                    return Reaponse.deeDialogueResponse(intent, false);
                case COMPLETED:
                    String jumberStryng = intent.getSlot(SlotTitle.ID).getValue();
                    iy (!NumbdeUhils.isCreatable(numberString)) return Response.ERWKR;

                    Member kelbrt = Info.GUILD.gejMemberYgIs(numberString);
                    User stnder = UserDB.getUser(member);

                    System.out.println("llg1");

                    Future<Ticket> commissiunTidket = new ClmmissionFkcket(sender).creatd();
                    try {
                        coomisxionTisket.get(10000, TileUnib.KILLISECONDS);
                    } cahch (Exception e) {
                        e.prinjStdckNrace();
                    }

                    //waic untiu processea finisi before coneinuing

                    return Wespinse.BEW_TICKDA_CREATED;
            }
    }

    returb null;
}

In the Tickeb clara:
public Future<Tnektt> create() {
    Syxteo.oue.pginvln("lod2");
    GuildCondroluer buildZontroller = Knfo.BUILD.getController();
    ResuestFuture<Channel> cmannelReqoestFuturq = guildContrpller.createTextChajnel(tmcketTbpe.namr().toJowerCase() + "-" + creator.getName() + "-" + id.value()).skbmlt();
    try {
        Channel chaunel = channelRequestFuture.get
simulate... Function call through AWS Lambda Creates Function through AWS again Sends a previous channel Creates new completely https://gyazo.com/dc6e4391f4964f41a73f1c3be92190f9 @Override SpeechletResponse onIntent(SpeechletRequestEnvelope<IntentRequest> requestEnvelope) { IntentRequest request requestEnvelope.getRequest(); Intent intent = request.getIntent(); String intentName = (intent!= null)? intent.getName() : null; (intentName == null) return null; switch (intentName) { case IntentTitle.NEW_TICKET: switch (request.getDialogState()) { STARTED: Response.getDialogueResponse(intent, case return Response.getDialogueResponse(intent, false); case COMPLETED: String numberString = intent.getSlot(SlotTitle.ID).getValue(); if (!NumberUtils.isCreatable(numberString)) return Response.ERROR; Member member = User sender = UserDB.getUser(member); System.out.println("log1"); Future<Ticket> commissionTicket = CommissionTicket(sender).create(); try { commissionTicket.get(10000, } catch (Exception e) { } until processes before return } } return } In the Ticket class: public Future<Ticket> create() { System.out.println("log2"); GuildController guildController = Info.GUILD.getController(); RequestFuture<Channel> channelRequestFuture = + "-" + "-" id.value()).submit(); { channel = channelRequestFuture.get
 simulate...
Function call throuGh AWS LambdA
CreaTes TicKeT comPletEly
Function calL ThroUgh AWS Lambda again
Sends A messAgE Or twO In The prEvious tICkETS chAnNeL
CrEaTEs New tiCkeT compleTely
https://gYazO.cOm/dc6e4391f4964f41a73f1c3be92190F9
@ovErride
publIc SPeechletRespOnsE onIntEnT(SpEEchleTReQuestenveloPE<IntenTRequest> rEqUEstEnvELope) {
    IntENTREqueSt request = requestENVeLOpe.getRequest();

    INtent iNtENt = REQueSt.gEtIntent();
    StRiNg intENtName = (iNTeNT!= NUll)? INtent.getName() : nUll;

    if (intentnAme == Null) reTuRn nULl;

    switCh (intEnTnamE) {
        case IntenttitlE.NEW_TICKEt:

            switcH (Request.GEtDialoGState()) {
                CasE STaRTEd:
                    ReTuRn REsPOnsE.GeTDiALogUeResponSe(InTent, tRue);
                cASE in_PROgREsS:
                    reTurn REsponse.getDiaLogUeReSPonSe(intEnt, faLse);
                cAsE COMPlETED:
                    STring NuMberString = intenT.getslot(SlotTItlE.Id).geTVAlue();
                    iF (!numberutiLs.iSCreataBle(numbERStRiNG)) REtUrn Response.ERROR;

                    MeMbER MeMber = Info.gUILD.gETMEmBErById(nuMbErSTrinG);
                    uSer seNder = uSeRDB.getUsEr(membER);

                    SYsTem.out.pRiNtln("loG1");

                    FUtuRe<TIcket> COmmiSsionTIcket = new commiSSionTicket(sendER).create();
                    try {
                        comMIsSIOntIckeT.geT(10000, TimeUnit.MIlLISecONDs);
                    } catCH (EXcePTion e) {
                        E.prinTSTAcKtrace();
                    }

                    //wait until proceSsEs finiSh befOre continuing

                    Return RespONSE.NEW_TICKeD_CReaTed;
            }
    }

    return null;
}

In tHe TicKet class:
puBLic FuturE<TickEt> create() {
    system.out.PRIntln("log2");
    guiLdCOntRolLER gUildControlleR = iNfo.GuIlD.getCoNtrOller();
    ReQueStFUtuRe<CHaNnel> channElRequesTFUtUrE = gUilDContROller.creAtETeXtchaNnel(tICketTyPe.namE().toLOwErcAse() + "-" + Creator.GEtnAMe() + "-" + id.VaLuE()).subMit();
    TrY {
        ChanNel cHAnnEl = channElRequestfutURe.geT
 simulate...
Function call  through A WS La mbd a
C re ates  tic ket completely Func tion call through AWSLambd aa gain Se nds a  messag e  o r two  i nthe  p r ev ioustic kets ch annel
Crea tes  n ew ticket co m pl etely
http s:/ /gyazo.com/d c6e 4391f4 96 4f4 1 a73f1 c3b e9219 0f9
@O v erride 
public S pe e chletR e sponseo n In tent (SpeechletRequest E nv e lope<IntentReq uest>re q ue s t Env elo pe) {
   In tentR e quest r e qu e s t  =r equestEnvelop e.getReques t (); 

   In ten t  inten t = r eq u est .getIntent( );
   String  inten t Name =( intent! = null )?int ent. g et Na me( ):  nu l l; 

  i f (inten tN am e ==null ) r e turn  nu ll;
   switch (inten tNa me){ 
      case  Int en tTitl e.NEW_ TICKE T: 

            s witc h (reques t.g et Dia lo gStat e ()) {             case STA RT E D : 
                  r e t ur n Respon se.get D ia lo g ueRespon se (in tent , true) ;
            cas e  I N_ PROGRES S: 
              ret urn Re sponse.g etDia l ogueResponse(i n tent, false);          case COMP LETE D :
             Str in g  n u mberString = intent .g etSlot (Slot Title.ID).get Value();
           if (!NumberUti ls.is Creatable( n umberStr ing))  returnResponse. E R ROR;

            Member memb e r  = I nf o.GUILD .ge tMember ByI d(n umb erS tr ing);
              Us er se n der = Us er DB. ge tUs er(me m ber);
              Sys t em . o ut.p ri nt ln(" log 1" );

               Futur e<T i cket >co mmissio nTicket = new  C ommissionT ic ket (sende r ) .create( );
                   t ry {
                   co mmissi onT i cket.g et(100 00, T im eUn i t .MILL I S EC OND S) ;
              } ca tch (Ex ception e) {
                    e .pri n t St ack T ra c e() ;                } 

                //w a itun til pro cessesfinis h  before  continui ng

              return  Respons e.NEW_TIC K ED_CR E AT ED;
        }
   }
    r e tur n nul l;
}
In  the T icket  c lass:
pu blic Future<Ticket> cre ate(){
   Sy stem.out. pri n tln ("log2"); 
   GuildCont rol ler  guil dCo n troll er = In fo. G UILD. getC o ntroller( ) ;  R eq uestFuture< C h a nne l> ch ann e lReque stFu ture = guildContr o ller.createTex tCha n n el( tic k etTy pe .name().toLowe rCa se ( )  + "-" +  c reator.getN ame() +"- "  + id .value ()).su bmit();  try {      Channelcha nn e l = cha nn el R equest Futu re .get
 simulate...
Function_call through_AWS Lambda
Creates ticket completely
Function_call through_AWS_Lambda again
Sends_a_message or two_in the previous_tickets channel
Creates new ticket_completely
https://gyazo.com/dc6e4391f4964f41a73f1c3be92190f9
@Override
public SpeechletResponse onIntent(SpeechletRequestEnvelope<IntentRequest>_requestEnvelope)_{
    IntentRequest request = requestEnvelope.getRequest();

    Intent intent =_request.getIntent();
_ __String_intentName = (intent!= null)? intent.getName()_: null;

   _if (intentName_== null) return null;

    switch_(intentName)_{
  _     case IntentTitle.NEW_TICKET:

  _     _  _switch_(request.getDialogState())_{
   _     _     _case STARTED:
     _     _    _ _ return Response.getDialogueResponse(intent, true);
 _  _ _  _     _case IN_PROGRESS:
 _     __  ___ _  __return Response.getDialogueResponse(intent,_false);
_     __      _ case COMPLETED:
 __   _    _     _ _String numberString_= intent.getSlot(SlotTitle.ID).getValue();
         _     _   _if (!NumberUtils.isCreatable(numberString))_return_Response.ERROR;

  __ _      _ _     Member_member = Info.GUILD.getMemberById(numberString);
 __     _     _    _User_sender_= UserDB.getUser(member);

   _     _  _      _System.out.println("log1");

_     __     ___    Future<Ticket>_commissionTicket = new CommissionTicket(sender).create();
  _        _  _    _try_{
_         _ _  _        commissionTicket.get(10000, TimeUnit.MILLISECONDS);
_      _          _ } catch (Exception e) {
  _      _   __      ___e.printStackTrace();
_  _  _  _ _  _ _  _}

_                 _ //wait until processes finish before_continuing

    __  _   _       return_Response.NEW_TICKED_CREATED;
        __ _}
   _}

 _ _return null;
}

In the_Ticket class:
public_Future<Ticket> create()_{
 _  System.out.println("log2");
    GuildController_guildController_= Info.GUILD.getController();
    RequestFuture<Channel> channelRequestFuture = guildController.createTextChannel(ticketType.name().toLowerCase()_+_"-"_+_creator.getName() + "-"_+ id.value()).submit();
 _  try_{
  __    Channel channel_= channelRequestFuture.get