Skip to content

Commit 631bbf5

Browse files
committed
Merge branch 'branch-Personality'
2 parents 98ba724 + 939f758 commit 631bbf5

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

src/main/java/devin/Devin.java

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,19 @@ public String getResponse(String text) throws DevinException, IOException {
5555
case "find" -> Command.findCommand(list, texts);
5656
case "schedule" -> Command.scheduleCommand(list);
5757
default -> throw new DevinException("""
58-
Unknown command.
59-
Please choose one of the following commands:
60-
bye
61-
list
62-
mark
63-
unmark
64-
delete
65-
todo
66-
deadline
67-
event
68-
find""");
58+
I'm sorry, but I didn't catch that. Here are the commands I understand: \s
59+
- `bye` \s
60+
- `list` \s
61+
- `mark` \s
62+
- `unmark` \s
63+
- `delete` \s
64+
- `todo` \s
65+
- `deadline` \s
66+
- `event` \s
67+
- `find` \s
68+
- `schedule` \s
69+
70+
Try one of these!""");
6971
};
7072
}
7173

src/main/java/devin/ui/Ui.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ public class Ui {
99
* Prints the greeting message.
1010
*/
1111
public static String printGreet() {
12-
return "Hello! I'm, Devin\nWhat can I do for you?";
12+
return "Hello! I'm Devin, your AI assistant. How can I assist you today?";
1313
}
1414

1515
/**
1616
* Prints the exit message.
1717
*/
1818
public static String printExit() {
19-
return "Bye. Hope to see you again soon!";
19+
return "Goodbye! Feel free to return whenever you need assistance.";
2020
}
2121

2222
/**
@@ -25,7 +25,7 @@ public static String printExit() {
2525
* @param taskName task description.
2626
*/
2727
public static String printMark(String taskName) {
28-
return "Nice! I've marked this task as done:\n " + taskName;
28+
return "Task marked as completed:\n " + taskName + "\nGreat work!";
2929
}
3030

3131
/**
@@ -34,7 +34,7 @@ public static String printMark(String taskName) {
3434
* @param taskName task description.
3535
*/
3636
public static String printUnmark(String taskName) {
37-
return "OK, I've marked this task as not done yet:\n " + taskName;
37+
return "Task marked as not completed:\n " + taskName + "\nLet me know if you need further adjustments.";
3838
}
3939

4040
/**
@@ -44,7 +44,7 @@ public static String printUnmark(String taskName) {
4444
* @param size task list size.
4545
*/
4646
public static String printDelete(String temp, int size) {
47-
return "Noted. I've removed this task:\n " + temp + "\nNow you have " + size + " tasks in the list.";
47+
return "Task removed successfully:\n " + temp + "\nYou now have " + size + " tasks remaining.";
4848
}
4949

5050
/**
@@ -54,7 +54,7 @@ public static String printDelete(String temp, int size) {
5454
* @param size task list size.
5555
*/
5656
public static String printAdd(String taskName, int size) {
57-
return "Got it. I've added this task:\n " + taskName + "\nNow you have " + size + " tasks in the list.";
57+
return "Task added successfully:\n " + taskName + "\nYou now have " + size + " tasks in your list.";
5858
}
5959

60-
}
60+
}

0 commit comments

Comments
 (0)