Giter Site home page Giter Site logo

bot_or_not's People

Contributors

agnescameron avatar cosmicespresso avatar rokeby avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bot_or_not's Issues

set timeout for bot to speak in round1 (step 5)

In the first Chat round, we currently expect the player to initiate conversation. This is to avoid the impression that the bot is somehow 'in control' of the interaction, but we run the risk that the interaction could be very slow/awkward to start if both parties remain silent.

Thus, perhaps building in a 4-8 second timeout window, after which the bot will initiate conversation might be a good way to handle the interaction. Unsure of the do's and dont's of this WRT the current react flow but happy to look at this later this week.

bot no longer starting truth round

How this worked before:
When a new bot was configured before starting a round, if the bot was the 'truth challenge bot' (the one that challenges the player) then a function called chooseTruth would be called. This would select a truth challenge from a list on the backend, and append it to the chat at the start of the round.

What happens now:
chooseTruth() is getting called (twice, actually -- eek), but the bot appends nothing to the chat window, until the player says something.

Screen Shot 2020-04-10 at 12 32 57

I assume this is because botQueue is now getting cleared at the start of each round.

What I assume needs to happen:
chooseTruth() needs to get called after botQueue is cleared. unsure why getting called twice though.

@Kallirroi does this seem right? lmk if there's anything I'm missing, happy to look into this this afternoon.

setting chat round timer > 60 causes it to loop back around

We're unlikely to want to do this so it's not really an issue per se, but wanted to check that this was expected behaviour!

59 seconds continues as normal
60 seconds loops back round to 0, then continues
61 seconds loops back round to 0, then continues

I reckon it's because of this line in Utils.js:

  var seconds = (Math.floor(time / 1000) % 60);

sometimes bot typing time overly-long

Screen Shot 2020-04-02 at 12 23 52

noticed this during the bot queue debugging: we can just add a cap here, but might be good to know why the timing is getting so high. It seems to go up when you overload the bot with messages, though perhaps this is just a coincidence.

how to order bots

Round 1: bot speaks first
Round 2: user speaks first
Round 3: bot speaks first (?) or random (?)

move chat processing functions to a separate helper file?

Just a sanity check about general architecture: right now App.js holds the state for pretty much everything, and controls the events for everything too. The other components are just recyclable UI. Does that make sense?

I would ideally want to separate the functions that handle the messaging (in a separate function or encapsulate them in the Chat component itself) but worry it might break things, especially bc I'm not sure how the bot array exactly works.

What exactly does App.js need to hold as state, and feed it through the lifecycle methods?

Curious to hear thoughts :)

clear message queue between rounds

currently, if you spam the bot by typing too fast, the queued messages get stored and then append to the chat next round.

I tried just setting botQueue to [] each time the bot changes, but i think that the messages are getting stuck in the timeout in Chat.js. Have verified that in this instance the POST request delay isn't the issue (they're returning on average about 145ms), though we might also want to make sure that that isn't a problem for slower internet speeds...

handle Truth/Dare choice

we need to reset [messages] between rounds but not between AudioVis<-->Chat component transitions

stream refused by server error

some kind of gross JSON bug, need some error handling on this guy

{"errorType":"SyntaxError","errorMessage":"Unexpected end of JSON input","trace":["SyntaxError: Unexpected end of JSON input"," at JSON.parse ()"," at Runtime.exports.handler (/var/task/runSample.js:1:1204)"," at Runtime.handleOnce (/var/runtime/Runtime.js:66:25)"," at runNextTicks (internal/process/task_queues.js:59:5)"," at processImmediate (internal/timers.js:412:9)"]}

Screen Shot 2020-02-28 at 10 46 09

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.