Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Lily Romano
    @Lilyheart
    @lantech19446 Sent you a PM xD
    Lily Romano
    @Lilyheart
    @dcpking Can you see if you can get MontCode into the North Wales library on January 11th? (setup like 4ish, start at 5) I would plan on maybe 10-20 people at the most and I would like to be able to serve food.
    Lily Romano
    @Lilyheart
    What's everyone coding today?
    Jonathan Herman
    @lantech19446
    I
    I've decided to try doing installfest on ubuntu server
    Lily Romano
    @Lilyheart
    oh. oh my xD Sounds like rail load of fun xD
    Jonathan Herman
    @lantech19446
    I mean it could be a disaster because I'm not sure if atom will run on server or if I need a DE for that but it may be useful when I eventually get a laptop just for dev work to keep me on track
    Jonathan Herman
    @lantech19446
    are we the only ones here tonight?
    Lily Romano
    @Lilyheart
    So far it seems.
    Jonathan Herman
    @lantech19446
    the mighty echo
    Lily Romano
    @Lilyheart
    blob
    I got a few messages from people who wanted to join in but where busy tonight.
    Jonathan Herman
    @lantech19446
    o ok
    /giphy empty
    damn
    Lily Romano
    @Lilyheart
    heh
    Jonathan Herman
    @lantech19446
    I broke giphy in cody's room lol
    Lily Romano
    @Lilyheart
    ha! I'll have to see how they have that set up at some point...
    So much I need to do with @MontBot
    Jonathan Herman
    @lantech19446
    function chooseRandomGif(searchTerm) {
      return new Promise(function(resolve, reject) {
        giphy.search({q: searchTerm, limit:10}, function(err, result) {
          if (err) reject('Error');
    
          if (result.data.length) {
            var image = result.data[randomInt(result.data.length)];
            var imageUrl = image.images.original.url;
            resolve(imageUrl);
          } else {
            chooseRandomGif("Fail");
          }
        });
      });
    }
    there was some issue with it today though, not sure if he's fixed it yet
    Lily Romano
    @Lilyheart
    heh. At some point... xD Will require a brainshift I can't do at the moment. Gah schoolwork.
    Jonathan Herman
    @lantech19446
    yea
    and it doesn't make much sense to me still being horrible at js lol
    Lily Romano
    @Lilyheart
    It look like that is just one piece of it.
    Jonathan Herman
    @lantech19446
    it's possible, that's what he posted today but maybe that's just the broken part
    Lily Romano
    @Lilyheart
    Found the bot's code. Look like it was fixed. codyloyd/odin-bot-js@b5c9434
    Jonathan Herman
    @lantech19446
    awesome
    I'll tell you in one moment
    Lily Romano
    @Lilyheart
    MontBot needs to move to another server or something tho that's always one. /sigh stuff and money
    Jonathan Herman
    @lantech19446
    it's working but the gif I just got for golumpki makes no sense at all
    Lily Romano
    @Lilyheart
    That's hysterical.
    picture
    I dunno either, i wanna figure it out tho
    Jonathan Herman
    @lantech19446
    I did one for narendra modi earlier too, it made more sense than this lol
    Lily Romano
    @Lilyheart
    when I search golumpki on the giphy site there are no results... so maybe it's some sort of default search then? I'd have to check their api
    Lily Romano
    @Lilyheart

    figgured it out.

          if (result.data.length) {
            var image = result.data[randomInt(result.data.length)];
            var imageUrl = image.images.original.url;
            resolve(imageUrl);
          } else {
            resolve(chooseRandomGif('Fail'));
          }

    It's that code. The search result had zero. So the if (result.data.length) resolves to false because result.data.length was zero and zero is falsey. That means it did resolve(chooseRandomGif('Fail')); which does a giphy search on the keyword fail xD

    sneaky cody xD
    Jonathan Herman
    @lantech19446
    ooo ok
    interesting, kind of clever too
    lily you should see the screen scrolling installing atom on ubuntu server lol
    Lily Romano
    @Lilyheart
    xD I bet that's entertaining!
    Jonathan Herman
    @lantech19446
    sometimes it makes me feel like the male version of Garcia lol
    Lily Romano
    @Lilyheart
    I don't get the reference :( I'm either tired or just plain don't know it :O
    Jonathan Herman
    @lantech19446
    garcia is the computer expert on criminal minds who developed her entire system from the ground up on Linux
    Lily Romano
    @Lilyheart
    oooooooh
    Jonathan Herman
    @lantech19446
    and atom no go on ubuntu server
    Lily Romano
    @Lilyheart
    boooooooo
    Jonathan Herman
    @lantech19446
    yea it's missing libXss.so.1 and there's no way to add that library to server
    Lily Romano
    @Lilyheart
    ouch