Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jesstelford/emoji-tetra-animated

Generates a gif of the MMO Tetra game hosted by https://twitter.com/EmjoiTetra
https://github.com/jesstelford/emoji-tetra-animated

Last synced: 28 days ago
JSON representation

Generates a gif of the MMO Tetra game hosted by https://twitter.com/EmjoiTetra

Awesome Lists containing this project

README

        

# EmojiTetra gif generator

Generates a gif of the MMO Tetra game hosted by [@EmjoiTetra](https://twitter.com/EmjoiTetra):

![A gif](./anim.gif)

## Setup

Requirements:

- [gifski cli](https://gif.ski/) to be installed and in the PATH
- Node.js >= 10.0.0
- [`yarn`](https://yarnpkg.com/en/)

Installation:

```
$ git clone https://github.com/jesstelford/emoji-tetra-animated.git
$ cd emoji-tetra-animated
$ yarn
```

Save firebase credentials to `./firebase-emojitetragif-admin.json`.

Edit `.env` to setup Twitter bot creds.

## Running it

```
$ yarn start 989912736971636736
```

_(where `989912736971636736` is the ID of the first tweet in a game thread)_

Will give output like:

```
❯ yarn start
✔ Setting up Headless Chrome
✔ Saved screenshot for tweet 989912736971636736
...
✔ Saved screenshot for tweet 990617375895470080
✔ All screenshots taken
...
```

This will create **`anim.gif`**, upload it to Twitter as a reply to the most
recent @EmojiTetra post, then listen for new posts and continue uploading.

### Troubleshooting

Try running it like so:

```
$ DEBUG=tetra yarn start
```

Want _more_ debug info? You asked for it...

```
$ DEBUG=* yarn start
```