The Tum ChatBot is an application that can be used as a memorandum through the Command Line Interface or JAR Files. If you have anything to do or some important appointments, you can store them in Tum Chat and a text file regarding your tasks will be automatically generated so that you can be aware of what has been done and what should be done.
Prerequisites: JDK 11, update Intellij to the most recent version.
- Open Intellij (if you are not in the welcome screen, click
File
>Close Project
to close the existing project first) - Open the project into Intellij as follows:
- Click
Open
. - Select the project directory, and click
OK
. - If there are any further prompts, accept the defaults.
- Click
- Configure the project to use JDK 11 (not other versions) as explained in here.
In the same dialog, set the Project language level field to theSDK default
option. - After that, locate the
src/main/java/Duke.java
file, right-click it, and chooseRun Duke.main()
(if the code editor is showing compile errors, try restarting the IDE). If the setup is correct, you should see something like the below as the output:
____________________________________________________________
Hello! I'm TUM
What can I do for you?
____________________________________________________________
- Ensure you have Java 11 installed in your Computer.
- Download the latest IP.jar from here.
- Copy the file to the folder you want to use as the home folder for your Tum ChatBot.
- Open a command terminal, cd into the folder you put the jar file in, and use the java -jar IP.jar command to run the application. In a few seconds, it should show that:
- Type the command in the command box and press Enter to execute it. e.g. typing help and pressing Enter will open the help window. Some example commands you can try:
-list: Lists all contacts.
-todo return book: add the task todo "return book" in your task list
-delete 1: Deletes the first task shown in the current list.
-clear: Deletes all tasks.
-bye: Exits the app.
-
Add a task to your TaskList. We have 3 kinds of tasks available: todo, deadline, event
-
Format: todo DESCRIPTION_OF_TODO
-
Format: deadline DESCRIPTION_OF_DEADLINE /by DEADLINE
-
Format: event DESCRIPTION_OF_EVENT /from START_TIME /to END_TIME
-
Examples:
· todo borrow book
· deadline return book /by Sunday
· event project meeting /from Mon 2pm /to 4pm
-
Shows a list of all tasks that have been stored in the task list
-
Format: list
-
Set the status of a task based on a given index to "DONE" by using "mark" or
-
Set the status of a task based on a given index to "NOT_DONE" by using "unmark"
-
Format: mark INDEX
-
Format: unmark INDEX
-
Examples:
· mark 1
· unmark 2
-
Search for all the tasks in the task list that contain the keyword given by the user
-
Format: find DESCRIPTION
-
Examples:
· find book
-
Deletes the specified task from the task list based on the index
-
Format: delete INDEX
-
Deletes the person at the specified INDEX.
-
The index refers to the index number shown in the displayed person list.
-
The index must be a positive integer 1, 2, 3, …
-
Examples:
· delete 2: deletes the 2nd person in the address book.
-
Clears all entries from the address book.
-
Format: clear
-
Exits the program.
-
Format: bye
Action | Format | Examples |
---|---|---|
todo | todo DESCRIPTION | todo return book |
deadline | deadline DESCRIPTION /by DEADLINE | deadline return book /by Sunday |
event | event DESCRIPTION_OF_EVENT /from START_TIME /to END_TIME | event project meeting /from Mon 2pm /to 4pm |
delete | delete INDEX | delete 3 |
mark | mark INDEX | mark 2 |
find | find KEYWORD | find book |
Clear | clear | clear |
Help | help | help |