Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tham You Wei] iP #536

Open
wants to merge 76 commits into
base: master
Choose a base branch
from
Open

[Tham You Wei] iP #536

wants to merge 76 commits into from

Conversation

tyouwei
Copy link

@tyouwei tyouwei commented Sep 3, 2023

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