/fieriframes

Guy Fieri Frames

Primary LanguageJavaScript

POSTCARDS FROM FLAVORTOWN

Bold Flavors

This is the source code behind Fieri Frames. If you're here, you must love existential angst and bold flavors. Who can blame you?

Anyway, as you can tell, there's not much in this repo. This bot is powered by another terrible library I wrote, called stills. The setup for this thing is the most convoluted thing in Flavortown, so if you're trying to contribute, you must really, really love bold flavors. Guy bless you.

To change the way the stills generator works, you're really going to have to change the stills engine. So these instructions will show you how to pull down that repo and link things up locally so you dev on both the fieriframes bot (which, again, does nothing) and the underlying engine.

Setup

Dependencies

  1. imagemagick: brew install imagemagick
  2. nvm: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash

stills engine

  1. Fork https://github.com/shahkashani/stills.git and replace the URL in the step below with your fork
  2. git clone https://github.com/shahkashani/stills.git
  3. cd stills
  4. nvm install
  5. npm install
  6. npm link
  7. cd ../

fieriframes bot

  1. git clone https://github.com/shahkashani/fieriframes
  2. cd fieriframes
  3. nvm install
  4. npm install
  5. npm link stills

Now, any changes you make to stills will automatically be picked up by fieriframes. If you make something cool, please make a PR from your stills fork against the master repo.

Creating stills

  1. cd fieriframes
  2. mkdir videos stills gifs
  3. Put some videos in the videos folder you just made
  4. npm run stills for stills
  5. npm run gifs for gifs

That'll create random stills/gifs into stills and gifs.

By default, it also adds captions and makes sure a certain percentage of images contain Guy Fieri.

If you want more granular control over how the stills are generated (i.e. the number of stills per episode, how many percentage of stills should have captions, etc.), run:

  1. ./node_modules/.bin/stills --help
  2. ./node_modules/.bin/gifs --help

If you want to change the stills generation code, this file is a good place to start.

Posting?

If you want to post the stills you generate, you basically need to set things up in an .env file based on these instructions

Tada

I think that's it. I can't guarantee that any of this will work since I probably have a thousand dependencies beyond imagemagick I don't remember installing, but let me know if you run into any troubles.