Duke is an anime girl on your computer a simple chatbot that helps you track your tasks and whether you’ve completed them.
You can get Duke on your computer by downloading the latest .jar file under releases.
As Duke was developed on JDK 11, and as such it’s recommended that you have Java SE 11 or later installed on your computer before running Duke.
Alternatively, you can clone the repo. Then from the root folder, execute the command:
gradlew run
You can add and delete tasks from a list.
Each task can be classified as a todo, deadline or event task.
Duke can sieve through your list to return only the relevant tasks.
Duke can remember any tiny bit of trivia you tell her.
todo
- Creates a new todo task in memoryDuke will create a new Todo Task and store it within its memory.
Example usage:
todo eat borgar
Expected outcome:
Gotcha! I've added a new task:
[T][✘] eat borgar
You've got 1 task(s) on your list.
deadline
- Creates a new deadline task in memoryDuke will create a new Deadline Task and store it within its memory.
You may specify either a date or a time, in any order. This must be pre-fixed by a /by
subcommand.
Example usage:
deadline eat borgar /by 10/10/2020
deadline eat borgar /by 10/10/2020 2359
deadline eat borgar /by 2359 10/10/2020
Expected outcome:
Gotcha! I've added a new task:
[D][✘] eat borgar (by 10/10/2020)
You've got 1 task(s) on your list.
Gotcha! I've added a new task:
[D][✘] eat borgar (by 10/10/2020 2359)
You've got 2 task(s) on your list.
Gotcha! I've added a new task:
[D][✘] eat borgar (by 10/10/2020 2359)
You've got 3 task(s) on your list.
event
- Creates an new event task in memoryDuke will create a new Event Task and store it within its memory.
The input dates should be pre-fixed by an at
.
You may enter up to two pairs of date-times. The two dates should be split by a to
.
Example usage:
event eat borgar /at 16/9/19
event eat borgar /at 16/9/19 to 16/9/20
event eat borgar /at 16/9/19 0000 to 16/9/20 2359
Expected outcome:
Gotcha! I've added a new task:
[E][✘] eat borgar (at 16/09/2012)
You've got 1 task(s) on your list.
Gotcha! I've added a new task:
[E][✘] eat borgar (at 16/09/2012 to 16/09/2013)
You've got 2 task(s) on your list.
Gotcha! I've added a new task:
[E][✘] eat borgar (at 16/09/2019 0000 to 16/09/2020 2359)
You've got 3 task(s) on your list.
list
- Pulls up the entire list of tasksDuke will return the entire list.
In this example, 3 tasks were already stored in Duke’s internal list.
Example usage:
list
Expected outcome:
1.[T][✘] eat borgar
2.[D][✘] eat borgar (by 2359)
3.[E][✘] beat orgar (at 17/09/2019 1359)
find
- Pulls up only the items that match the keywordDuke will return only the parts of the list that match the keyword.
Example usage:
find beat
Expected outcome:
Scan complete! I've got your tasks right here!
3.[E][✘] beat orgar (at 17/09/2019 1359)
done
- Marks an item on the list as doneDuke will mark the Task a the specified index as done.
Example usage:
done 3
Expected outcome:
Good job! I've marked this task as done:
[E][✓] beat orgar (at 17/09/2019 1359)
delete
- Delete a task from your listDuke will delete a Task.
Example usage:
delete 3
Expected outcome:
No problem! I've deleted the task:
[E][✓] beat orgar (at 17/09/2019 1359)
You've got 2 task(s) on your list.
nuke
- Deletes all tasks from your listDuke will delete all Tasks.
Example usage:
nuke
Expected outcome:
Boom! I've deleted all your tasks!
note
- Creates a new note in memoryDuke will store a new note in its memory.
Example usage:
note McBorgar > borgarking
Expected outcome:
Gotcha! I've added a new note:
McBorgar > borgarking
You've got 1 note(s) on your list.
notelist
- Pulls up the entire list of notesDuke will return the entire list.
Example usage:
notelist
Expected outcome:
1. McBorgar > borgarking
deletenote
- Deletes a note in memoryDuke will delete the note at the specified index.
Example usage:
deletenote 1
Expected outcome:
No problem! I've deleted the note:
McBorgar > borgarking
You've got 0 notes on your list.
nukenote
- Deletes all the notesDuke will delete all notes within the list.
Example usage:
nukenote
Expected outcome:
Boom! I've deleted all your notes!
bye
- shuts down the programDuke will shut down, after saying goodbye.
Example usage:
bye
Expected outcome:
Alright, see you again!
Good luck, and do your best!