Kohli is a command-line chatbot designed to help users efficiently manage tasks. With Kohli, you can add different types of tasks, mark tasks as completed, find tasks, and save your task list for future use. This guide will walk you through how to use Kohli and its available features.
- Ensure Java 17 or above is installed on your computer.
- Download the latest Kohli.jar file from the repository.
- Open a terminal and navigate to the folder containing Kohli.jar.
- Run the chatbot using the command:
java -jar Kohli.jar
- Start entering commands to interact with the chatbot.
- Refer to the features below for details on available commands.
Adds a simple task without a specific deadline.
todo <task description>Example:
todo Buy groceriesAdds a task with a specific deadline.
deadline <task description> /by <dd/mm/yyyy hhmm>Example:
deadline Submit report /by <dd/mm/yyyy hhmm>Adds a task with a specific start and end time.
event <task description> /from <yyyy-mm-dd hhmm> /to <yyyy-mm-dd hhmm>Example:
event Team meeting /from 2024-04-15 1400 /to 2024-04-15 1600Displays all tasks in the list.
listMarks a specific task as completed.
mark <task number>Example:
mark 2Marks a specific task as incomplete.
unmark <task number>Example:
unmark 2Removes a specific task from the list.
delete <task number>Example:
delete 3Searches for tasks containing a keyword.
find <keyword>Example:
find reportEnds the chatbot session.
byeKohli automatically saves tasks to a file when you exit and reloads them when you restart the chatbot.
Visit Java’s official site to download and install Java 17.
Yes, tasks are saved in a text file. You can edit it, but incorrect formatting may cause errors.
Kohli will display an error message and prompt you to enter a valid command.
- Incorrect formatting of dates or commands may result in errors.
- Manual modifications to the task file may cause the chatbot to malfunction.
- Tasks exceeding the file storage limit may not be saved properly.
| Action | Format | Example |
|---|---|---|
| Help | help |
help |
| Add To-Do | todo <task> |
todo Buy groceries |
| Add Deadline | deadline <task> /by <yyyy-mm-dd hhmm> |
deadline Submit report /by 2024-04-15 2359 |
| Add Event | event <task> /from <yyyy-mm-dd hhmm> /to <yyyy-mm-dd hhmm> |
event Team meeting /from 2024-04-15 1400 /to 2024-04-15 1600 |
| List Tasks | list |
list |
| Mark Task | mark <task number> |
mark 2 |
| Unmark Task | unmark <task number> |
unmark 2 |
| Delete Task | delete <task number> |
delete 3 |
| Find Task | find <keyword> |
find report |
| Exit | bye |
bye |
Now you're ready to manage your tasks efficiently with Kohli! 🚀