Skip to content

Commit

Permalink
now answering in swedish
Browse files Browse the repository at this point in the history
  • Loading branch information
insulationman committed Mar 7, 2024
1 parent cf5a84a commit ffffa8b
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,13 @@ function App() {
};

const createResponse = (message: string) => {
if (message.toLowerCase().includes("hello")) {
return "Hello there!";
} else if (message.toLowerCase().includes("how are you")) {
return "I'm doing great, thanks for asking!";
} else if (message.toLowerCase().includes("what's your name")) {
return "I'm a bot, I don't have a name!";
} else if (message.toLowerCase().includes("how old are you")) {
return "I'm a bot, I don't have an age!";
} else {
return "I'm sorry, I don't understand that.";
if (message.toLowerCase().includes("hej")) {
return "Hej!";
}
if (message.toLowerCase().includes("tack")) {
return "Varsågod!";
}
return "E du go eller?";
};

return (
Expand Down

0 comments on commit ffffa8b

Please sign in to comment.