Skip to content

Commit

Permalink
chatbot
Browse files Browse the repository at this point in the history
  • Loading branch information
BeccaWinn committed Nov 13, 2021
1 parent be1aeb0 commit bfa1e4b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Client/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ registerButton.onclick=function() {
sendChat.onclick=function() {
var bot =document.getElementById("#bot")
var you = document.getElementById("#you")
fetch("https://localhost:8080/chat",{
method:"POST",
credentials: "include",
})

fetch("https://localhost:8080/chat?userID=test65&userInput="+ str(you.value))
.then(response => response.json())
.then(data => console.log(data))
bot.value = data

}

0 comments on commit bfa1e4b

Please sign in to comment.