This project is maintained by blackonyyx
This is a user guide for the usage of Duke Application, made by Stephen Tan under the module CS2103T 2020/21 Sem 1.
Duke Chatbot is a project template for a greenfield Java project. It’s named after the Java mascot Duke. Given below are instructions on how to use it.
Install Java 11
To execute the program, or start the Duke Chatbot: Double click the jar file, or enter by command prompt
java -jar duke.jar
If you prefer a Command Line Interface, type:
java -jar duke.jar -cli
Then, type the help command to get help on what Duke can do.
help
Scope of features supported.
You can schedule tasks on the chatbot. There are up to 3 kinds of tasks supported.
todo <task description>
Todo tasks have no deadline and thus have no requirements on completion
In the system will register a todo task
Duke will indicate a bad command input was given and return a specific error relating to the bad input
deadline <task description> -by dd-MM-YYYY
Deadline tasks have a deadline and will indicate how close the given date is from the deadline using the current time. For deadline tasks, there is limited level of autocorrection Hence you can just specify a day > the current day’s date Eg: if date is 12 September 2020
deadline example task -by 13
In the system will register a deadline due by 14-9-2020
Duke will indicate that datetime is invalid, or an invalid input was given to the description field
event <task description> -at dd-MM-YYYY
Event tasks have a date of event and will indicate how close the given date is from the event using the current time. For event tasks, there is limited level of autocorrection Hence you can just specify a day > the current day’s date Eg: if date is 12 September 2020
event example task -by 13
In the system will register a event due by 14-9-2020
Duke will indicate that datetime is invalid, or an invalid input was given to the description field
You can list all tasks registered in the system with the command
list
You can find all tasks registered in the system by description using a substring or a regex expression.
find <regex or substring>
You can mark a task done by using the index of the task referenced from before.
done <index>
Duke will mark the task as done
Duke will indicate that the input is either out-of-index or not a number.
You can delete a task by using the index of the task referenced from before.
delete <index>
Duke will delete the task
Duke will indicate that the input is either out-of-index or not a number.
You can get help about Duke by issuing the command
help
You can also get specific help about certain commands through adding the specific command itself.
help <command>
Duke will respond with a help message.
Duke will respond with the all help Duke message.
You can end the execution of the application by issuing the command bye
bye