1
0
Fork 0
mirror of https://github.com/Oreolek/pancakes-or-waffles.git synced 2024-05-21 02:08:23 +03:00
Go to file
2018-01-28 01:17:19 +00:00
bin lint+fix 2018-01-28 01:17:19 +00:00
corpus update fandoms 2018-01-27 18:30:22 +00:00
express lint+fix 2018-01-28 01:17:19 +00:00
public lint+fix 2018-01-28 01:17:19 +00:00
test lint+fix 2018-01-28 01:17:19 +00:00
.bithoundrc fix bithoundrc 2018-01-24 21:30:15 +00:00
.editorconfig Update .editorconfig 2017-03-13 13:32:53 +01:00
.eslintrc lint+fix 2018-01-28 01:17:19 +00:00
.gitignore things 2018-01-27 23:35:10 +00:00
.nvmrc local tests 2018-01-23 21:17:49 +00:00
.pancakerc fix more things 2018-01-24 21:05:50 +00:00
.travis.yml Revert "Tag release" 2017-03-13 13:45:46 +01:00
CODE_OF_CONDUCT.md Update CODE_OF_CONDUCT.md 2017-05-08 14:57:36 +02:00
LICENSE throw the gpl in there 2017-03-12 12:20:17 +01:00
package-lock.json lint+fix 2018-01-28 01:17:19 +00:00
package.json lint+fix 2018-01-28 01:17:19 +00:00
README.md https2 2018-01-27 13:00:59 +00:00

Pancakes or waffles!!

Creates fake video game screenshots decipting player choices

Building

$ npm install
/*first time*/

$ npm run watch
/*for live development, on localhost:9191*/

$ npm run localpost
/*for posting a final photo to transfer.sh (private & requires no env. for testing)*/

$ npm run shitpost
/*for posting a final photo to twitter*/

To use Google image search you need an api key and a custom search engine. Get those and add them as env variables. Godspeed. We use dotenv so you can add them to a .env file for local dev.

  • MC_GOOGLE_CX
  • MC_GOOGLE_KEY

Tweeting

To actually use npm run shitpost you need the following env variables.

  • MC_TWITTER_APPK (consumer_key)
  • MC_TWITTER_APPS (consumer_secret)
  • MC_TWITTER_AT (access_token)
  • MC_TWITTER_S (access_token_secret)

Testing

The bot generates webpages, after the server is running you can visit https://localhost:9191 to see the page the bot sees or https://localhost:9191/test to see a cool dashboard.

You can ensure the code works by running npm test.