Skip to content

Commit

Permalink
Edit welcome message
Browse files Browse the repository at this point in the history
  • Loading branch information
ameliatjy committed Oct 2, 2020
1 parent 2502deb commit 210ae6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/controller/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public void setDuke(Duke d) {
public void dukeWelcome() {
String welcomeMessage = "Hello!!! I'm Duke, your handy tasks manager."
+ "\nHere are some commands you can use!"
+ " Note that Duke does not support the use of round brackets: ( or )."
+ "\n- To add a todo, type: 'todo <task description>'."
+ "\n- To add a deadline, type: 'deadline <deadline description> /by <dd-mm-yyyy> HHMM'."
+ "\n- To add an event, type: 'event <event description> /at <dd-mm-yyyy> HHMM'."
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/duke/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public Command processMsg(String inputMsg) throws DukeException {
String actionType = inputMsg.split(" ")[0];

if (inputMsg.contains("(") || inputMsg.contains(")")) {
throw new DukeException("Symbol used is not supported by Duke!");
throw new DukeException("Duke does not support usage of round brackets!"
+ "\nTry curly or square brackets instead?");
}

if (inputMsg.equals("list")) {
Expand Down

0 comments on commit 210ae6a

Please sign in to comment.