src/main/java/seedu/address/bot/ArkBot.java
public Ability cancelCommand() {
        return Ability
                .builder()
                .name("cancel")
                .info("cancels QR code upload")
                .input(0)
                .locality(Locality.ALL)
                .privacy(PRIVACY_SETTING)
                .action(ctx -> Platform.runLater(() -> {
                    this.waitingForImage = false;
                    sender.send(BOT_MESSAGE_CANCEL_COMMAND, ctx.chatId());
                }))
                .build();
    }
/**
     * Command to cancel waiting for a QR to mark as completed.
     */
Command to cancel waiting for a QR to mark as completed.
Command to cancel waiting for a QR to mark as completed .
public Ability cancelCommand() {
        return Ability
                .builder()
                .name("cancel")
                .info("cancels QR code upload")
                .input(0)
                .locality(Locality.ALL)
                .privacy(PRIVACY_SETTING)
                .action(ctx -> Platform.runLater(() -> {
                    this.waitingForImage = false;
                    sender.send(BOT_MESSAGE_CANCEL_COMMAND, ctx.chatId());
                }))
                .build();
    }
public Ability cancelCommand ( ) { return Ability . builder ( ) . name ( "cancel" ) . info ( "cancels QR code upload" ) . input ( 0 ) . locality ( Locality . ALL ) . privacy ( PRIVACY_SETTING ) . action ( ctx -> Platform . runLater ( ( ) -> { this . waitingForImage = false ; sender . send ( BOT_MESSAGE_CANCEL_COMMAND , ctx . chatId ( ) ) ; } ) ) . build ( ) ; }
Command to cancel waiting for a QR to mark as completed.
Command to cancel waiting for a QR to mark as completed .