src/main/java/seedu/address/bot/ArkBot.java
public Ability redoCommand() {
        return Ability
                .builder()
                .name(RedoCommand.COMMAND_WORD)
                .info("deletes parcel at selected index")
                .input(0)
                .locality(Locality.ALL)
                .privacy(PRIVACY_SETTING)
                .action((MessageContext ctx) -> Platform.runLater(() -> {
                    try {
                        logic.execute(RedoCommand.COMMAND_WORD);
                        sender.send(String.format(BOT_MESSAGE_SUCCESS, RedoCommand.COMMAND_WORD), ctx.chatId());
                    } catch (CommandException | ParseException e) {
                        sender.send(BOT_MESSAGE_FAILURE, ctx.chatId());
                    }
                }))
                .build();
    }
/**
     * Replicates the effects of RedoCommand on ArkBot.
     */
Replicates the effects of RedoCommand on ArkBot.
Replicates the effects of RedoCommand on ArkBot .
public Ability redoCommand() {
        return Ability
                .builder()
                .name(RedoCommand.COMMAND_WORD)
                .info("deletes parcel at selected index")
                .input(0)
                .locality(Locality.ALL)
                .privacy(PRIVACY_SETTING)
                .action((MessageContext ctx) -> Platform.runLater(() -> {
                    try {
                        logic.execute(RedoCommand.COMMAND_WORD);
                        sender.send(String.format(BOT_MESSAGE_SUCCESS, RedoCommand.COMMAND_WORD), ctx.chatId());
                    } catch (CommandException | ParseException e) {
                        sender.send(BOT_MESSAGE_FAILURE, ctx.chatId());
                    }
                }))
                .build();
    }
public Ability redoCommand ( ) { return Ability . builder ( ) . name ( RedoCommand . COMMAND_WORD ) . info ( "deletes parcel at selected index" ) . input ( 0 ) . locality ( Locality . ALL ) . privacy ( PRIVACY_SETTING ) . action ( ( MessageContext ctx ) -> Platform . runLater ( ( ) -> { try { logic . execute ( RedoCommand . COMMAND_WORD ) ; sender . send ( String . format ( BOT_MESSAGE_SUCCESS , RedoCommand . COMMAND_WORD ) , ctx . chatId ( ) ) ; } catch ( CommandException | ParseException e ) { sender . send ( BOT_MESSAGE_FAILURE , ctx . chatId ( ) ) ; } } ) ) . build ( ) ; }
Replicates the effects of RedoCommand on ArkBot.
Replicates the effects of RedoCommand on ArkBot .