Code Monkey home page Code Monkey logo

otterbot's People

Contributors

jayteemo avatar jkupferman avatar joshlasdin avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

otterbot's Issues

Don't post broken images when using the .pic command

Right now when using the .pic command there is a decent chance that the image selected from google doesn't render in chat. Usually that is because

  • The image link is broken (a 404)
  • The host does not allow embedding and redirects to a full page
  • The url isn't correctly rendered via plug because it contains characters that the plug image url doesn't recognize (e.g. "(")

In either case it renders a broken image link. We should check that the image can actually render for users before we post it into chat. Presumably just fetch the image url, check that the response is 200 and the content type looks like an image.

Move chat splitter into chatSingle method

bot.chatSingle() should take a string of any length and split it into chunks small enough for the destination to handle. The max value should be moved to the config. Current setup can be found in the .ud module.

Secret handshake

Only after both Jersh and Jobu have secret handshake'd eachother, post a random secret handshake gif

Handle no song playing

When otterbot starts up and there is no song playing it dies after 30 seconds with the following stack trace.

/Users/jonathan/dev/otterbot/services/LastFm.js:26
            'artist': media.author,
                           ^
TypeError: Cannot read property 'author' of null
at _.extend.scrobble (/Users/jonathan/dev/otterbot/services/LastFm.js:26:28)
at /Users/jonathan/dev/otterbot/commands/newsong.js:17:24

newsong seems to get called even if nothing is playing, so this needs a check

Update README

Should include information on:

  • Getting Grunt setup
  • How to run tests

Deal with Heroku free tier limitations

In a recent pricing change Heroku now requires that all free tier apps have at least 6 hours of "sleep" time per 24 hour period. While right now it is just a nag, according to their announcement by January of 2016 they will start enforcing it.

The two options seem to be:

  1. Paying $7/mo for a hobby tier dyno and not worrying about it
  2. Changing the way otterbot works so that she can get her doctor recommended 6 hours of sleep per night
  1. is easy but collecting money from the group is kind of a pain in the butt and desirable if we can avoid it.

  2. is do-able but will require some work. Right now otterbot is "kept awake" by an external service pinging otterbot every few minutes. Otterbot can safely sleep from 12AM-6AM EST since no one is around during those hours. What we'd need to do is change the pinging app to not ping during those hours so otter can sleep and at 6AM start pinging again to wake her up again.

wiki command bugs

Gives weird messages like <onlyinclude> and {{multiple image for certain searches. To replicate:

.wiki USWNT
.wiki penis

Add Google Image Search support

There are often times when it would be useful to do a quick image search for a person or thing when people don't know what it is. Often times we end up doing a gif search for it but there are no results.

.pic Jenna Elfman
.pic tamagotchi

You can get google image search results using this JSON endpoint: http://ajax.googleapis.com/ajax/services/search/images?v=1.0&rsz=8&safe=active&q=cat

It should be really similar to the gifsearch command

Secrets in config.js

The config.js file contains real passwords and API keys. We probably want to make an example config file and .gitignore config.js.

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.