Code Monkey home page Code Monkey logo

lunchbot's People

Contributors

kevinzweerink avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

kevinzweerink

lunchbot's Issues

integrate ratings into food search

As product owner, I would like to allow users to rate food options, and then be able to query those results.

Examples

/lunchbot rate the Corn and Green Chili Bisque ⭐️⭐️ (five star rating system)

/lunchbot menu ⭐️⭐️⭐️ or higher

Error message suggestions

  • Lunchbot is out to lunch, come back later
  • Lunchbot is on strike
  • Lunchbot is lobbying for a minimum wage
  • Four Oh Four Oh Friggin Hell

Add better support for diacritics in text

Current solution for crashy unicode is:

arg.encode("utf-8", "binary", :undef => :replace)

Which fixes this crash:

2016-03-24T15:31:25.839542+00:00 heroku[router]: at=info method=POST path="/slash" host=nytlunchbot.herokuapp.com request_id=90f33660-299f-45d7-90f7-de203ba415db fwd="52.90.38.136" dyno=web.1 connect=2ms service=540ms status=500 bytes=326
2016-03-24T15:31:25.830813+00:00 app[web.1]:    /app/app.rb:70:in `encode'
2016-03-24T15:31:25.830801+00:00 app[web.1]: 2016-03-24 11:31:25 - Encoding::UndefinedConversionError - "\xFC" from ASCII-8BIT to UTF-8:
2016-03-24T15:31:25.830814+00:00 app[web.1]:    /app/app.rb:70:in `to_json'
2016-03-24T15:31:25.830815+00:00 app[web.1]:    /app/app.rb:70:in `send_msg_obj'

But produces output like this:
D�sseldorf Mustard

Instead of:
Düsseldorf Mustard

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.