GithubHelp home page GithubHelp logo

sushibot's People

Contributors

quernd avatar

Watchers

 avatar

sushibot's Issues

Handle multiple photos in one message

Authorized users can feed photos to the bot to be saved in the database. Right now, only the first photo is saved. Make sure to save all the photos and reply accordingly (it's just a matter of iterating over a list instead of List.hd, as they are all in the same list).

Manage uploaded photos

Photos uploaded by authorized users are stored in the database (and will be sent out randomly) but the photo ID is not logged and there is no way to manage photos.

It would be nice if authorized users could:

  • query photos by ID
  • delete photos

Possible extension (requires changes to the database structure):

  • keep track of which user uploaded a photo

Bot got stuck waiting for updates

For some unknown reason, the bot got stuck waiting for an update a few days ago:

2021-02-04 14:44:14,524 DEBG 'sushibot' stdout output:
Asking for updates with offset 126961621

2021-02-04 14:45:04,951 DEBG 'sushibot' stdout output:
200 OK
{"ok":true,"result":[]}

2021-02-04 14:45:04,951 DEBG 'sushibot' stdout output:
Asking for updates with offset 126961621

2021-02-04 14:45:55,382 DEBG 'sushibot' stdout output:
200 OK
{"ok":true,"result":[]}

2021-02-04 14:45:55,382 DEBG 'sushibot' stdout output:
Asking for updates with offset 126961621

And that was the end of it. No errors were logged.

Possible fix: Make sure to use a timeout in all requests and handle timeouts accordingly (retry with exponential backoff?)

https://discuss.ocaml.org/t/timeout-cohttprequests/660

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.