chrisladd / lunchbot Goto Github PK
View Code? Open in Web Editor NEWA slackbot for lunch at The New York Times cafeteria.
A slackbot for lunch at The New York Times cafeteria.
/lunchbot what's the soup for July 17, 2024?
Maybe it needs to be @lunchbot
?
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
For users in the #lunchbot
channel, a BLA should broadcast @here
every day at 12pm.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.