Skip to content

[Tham You Wei] iP#536

Open
tyouwei wants to merge 76 commits into
nus-cs2103-AY2324S1:masterfrom
tyouwei:master
Open

[Tham You Wei] iP#536
tyouwei wants to merge 76 commits into
nus-cs2103-AY2324S1:masterfrom
tyouwei:master

Conversation

@tyouwei

@tyouwei tyouwei commented Sep 3, 2023

Copy link
Copy Markdown

The Evan Chatbot

"To die or not to die, that is the question" -Anonymous

Evan frees your mind of having to remember things you need to do. It's,

  • text-based (not for the blind)
  • easy to learn (at the expense of my sanity)
  • design is very human

Want to create a DIY Evan?

  1. Apply for NUS CS here
  2. Make it to the 2nd year
  3. Take CS2103T

And it only costs 5k per semester!!!

Future update plans:

  • Managing tasks
  • Managing deadlines (coming soon 😢)
  • Reminders (coming s00n)

Also, here's my main method.

public static void main(String[] args) {
        //Start user interaction
        Scanner scanner = new Scanner(System.in);

        while(true) {
            try {
                String input = scanner.nextLine().toLowerCase();

                if (input.equals(Command.BYE.getCommand())) {
                    reply.printDialog("Bye. Hope to see you again soon!");
                    return;
                } else if (input.equals(Command.LIST.getCommand())) {
                    tasks.printTasks();
                } else if (input.equals(Command.TODO.getCommand())) {
                    ToDoCommand.start();
                } else if (input.equals(Command.DEADLINE.getCommand())) {
                    DeadlineCommand.start();
                } else if (input.equals(Command.EVENT.getCommand())) {
                    EventCommand.start();
                } else if (input.startsWith(Command.DELETE.getCommand())) {
                    DeleteCommand.start(input);
                } else if (input.startsWith(Command.MARK.getCommand())) {
                    MarkCommand.start(input);
                } else if (input.startsWith(Command.UNMARK.getCommand())) {
                    UnmarkCommand.start(input);
                } else if (input.startsWith(Command.FIND.getCommand())) {
                    FindCommand.start(input);
                } else {
                    throw new InvalidCommandException();
                }
            } catch (InvalidInputException e) {
                reply.printDialog(e.toString());
            } catch (MissingArgumentException e) {
                reply.printDialog(e.toString());
            } catch (InvalidCommandException e) {
                reply.printDialog(e.toString());
            }
        }
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants