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-02-10 21:07:20 +01:00
bin papaper mario 2018-02-10 19:29:21 +01:00
browser tabs 2018-02-10 19:29:37 +01:00
corpus oopsies 2018-02-10 21:06:34 +01:00
express oopsies x2 2018-02-10 21:07:20 +01: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 pancakerc 2018-01-28 01:29:45 +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 papaper mario 2018-02-10 19:29:21 +01:00
package.json papaper mario 2018-02-10 19:29:21 +01:00
puppeteer.config.json wip 2018-01-28 16:22:29 +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.