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-05-13 23:33:45 +07:00
bin eslint 2018-05-13 23:33:45 +07:00
browser eslint 2018-05-13 23:33:45 +07:00
corpus more words for the corpus 2018-05-13 23:28:04 +07:00
express oopsies x2 2018-02-10 21:07:20 +01:00
.bithoundrc please bithound 2018-02-11 12:13:29 +01: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 Mastodon upload API 2018-05-13 23:06:11 +07:00
puppeteer.config.json wip 2018-01-28 16:22:29 +00:00
README.md Update README.md 2018-02-11 12:26:11 +01:00

Pancakes or waffles!!

Creates fake video game screenshots depicting screens with player choices

Building

$ npm install

Posting

$ npm run localpost

Makes & posts a screenshot to transfer.sh (private & requires no env. for testing)

$ npm run shitpost

Makes & posts a screenshot to Twitter

$ npm run localpost --layout=dk64

Forces a specific post layout. Can be used with either localpost or shitpost

Dig into package.json to see how these commands are constructed to unlock the ability to do cool things, such as posting to twitter a really good looking localpost one without overriding it.

Hey Twitter doesn't work and all posts have Gravity Rush as the background

Ah yes. You need couple of API Keys to unlock the full power of this thing, sorry about that.

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

  • 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

$ npm run watch

Starts the local server

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/wall to see a cool dashboard.

You can ensure the code works by running npm test.