src/main/java/seedu/address/bot/ArkBot.java
public Ability listCommand() {
        return Ability
                .builder()
                .name(ListCommand.COMMAND_WORD)
                .info("lists all parcels")
                .input(0)
                .locality(Locality.ALL)
                .privacy(PRIVACY_SETTING)
                .action(ctx -> Platform.runLater(() -> {
                    try {
                        logic.execute(ListCommand.COMMAND_WORD + " "
                                + combineArguments(ctx.arguments()));
                        ObservableList<ReadOnlyParcel> parcels = model.getUncompletedParcelList();
                        sender.send(parseDisplayParcels(formatParcelsForBot(parcels)),
                                ctx.chatId());
                    } catch (CommandException | ParseException e) {
                        sender.send("Sorry, I don't understand.", ctx.chatId());
                    }
                }))
                .build();
    }
/**
     * Replicates the effects of ListCommand on ArkBot.
     */
Replicates the effects of ListCommand on ArkBot.
Replicates the effects of ListCommand on ArkBot .
public Ability listCommand() {
        return Ability
                .builder()
                .name(ListCommand.COMMAND_WORD)
                .info("lists all parcels")
                .input(0)
                .locality(Locality.ALL)
                .privacy(PRIVACY_SETTING)
                .action(ctx -> Platform.runLater(() -> {
                    try {
                        logic.execute(ListCommand.COMMAND_WORD + " "
                                + combineArguments(ctx.arguments()));
                        ObservableList<ReadOnlyParcel> parcels = model.getUncompletedParcelList();
                        sender.send(parseDisplayParcels(formatParcelsForBot(parcels)),
                                ctx.chatId());
                    } catch (CommandException | ParseException e) {
                        sender.send("Sorry, I don't understand.", ctx.chatId());
                    }
                }))
                .build();
    }
public Ability listCommand ( ) { return Ability . builder ( ) . name ( ListCommand . COMMAND_WORD ) . info ( "lists all parcels" ) . input ( 0 ) . locality ( Locality . ALL ) . privacy ( PRIVACY_SETTING ) . action ( ctx -> Platform . runLater ( ( ) -> { try { logic . execute ( ListCommand . COMMAND_WORD + " " + combineArguments ( ctx . arguments ( ) ) ) ; ObservableList < ReadOnlyParcel > parcels = model . getUncompletedParcelList ( ) ; sender . send ( parseDisplayParcels ( formatParcelsForBot ( parcels ) ) , ctx . chatId ( ) ) ; } catch ( CommandException | ParseException e ) { sender . send ( "Sorry, I don't understand." , ctx . chatId ( ) ) ; } } ) ) . build ( ) ; }
Replicates the effects of ListCommand on ArkBot.
Replicates the effects of ListCommand on ArkBot .