Code Monkey home page Code Monkey logo

mi1kb0t's People

Contributors

chiggins avatar danh42 avatar kburk1997 avatar kilbyjmichael avatar mloviska avatar sirsidis avatar twof avatar writeafterreed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mi1kb0t's Issues

Better image handling support

Images currently need to be handled by plugins on a per-network basis. There are already weird glitches with Messenger's images, and additional networks will only complicate things more. There should be core support for sending images that gets handled by the network. Potential example:

reply({
    image: "http://example.com/image.jpg",
    alt: "Message to be displayed on text-only networks (if blank, use the image URL)"
});

Possibly also allow for supplying a message and an image in the same reply call, to be sent in the same message. Messenger allows this, and other networks could always just handle it on their end as two messages if needed.

Messenger keeps breaking

When the bot has been connected to Mesenger for an extended period, it eventually loses the ability to respond to messages, with reply() calls failing silently. Incoming messages are still processed. This is a bug in the facebook-chat-api library, but can probably be worked around on this end by quickly dis/reconnecting nightly.

Google Image API bad URLs

The Google Custom Search API sometimes returns image URLs as x-raw-image:///(hex) rather than HTTP links. This currently crashes the entire bot, but even if #12 gets taken care of, it would be better to select a different image rather than sending nothing at all (or an error message). If an unsupported URL is detected, maybe try a couple other results and check their URLs before failing.

"Try again" in 8 ball

8 ball tells you try again in a few responses despite the fact that if you ask it the exact same question it'll rehash and tell you to try again again. Maybe add another layer of entropy or just remove those as responses something.

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.