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

https://github.com/mattipv4/pogchamp

Your new PogChamp is... View the new Twitch PogChamp and the history of the PogChamp of the Day at pogchamp.today
https://github.com/mattipv4/pogchamp

Last synced: 9 months ago
JSON representation

Your new PogChamp is... View the new Twitch PogChamp and the history of the PogChamp of the Day at pogchamp.today

Awesome Lists containing this project

README

          

# pogchamp

**Each day brings a new PogChamp emote to Twitch. View the latest PogChamp of the Day at [pogchamp.today](https://pogchamp.today).**

## About

Following the recent events in the United States of America, [Twitch decided to remove the original PogChamp emote](https://twitter.com/Twitch/status/1347003152222937088) due to the person behind the face inciting further violence.

To replace the iconic 'Pog' moment that the old PogChamp emote filled, based on a community suggestion, [Twitch are now rolling out a new face for the PogChamp emote every 24hrs](https://twitter.com/Twitch/status/1347589555197595650).

Inspired by this, I decided to create [pogchamp.today](https://pogchamp.today), based on the [visuals Twitch used](https://twitter.com/Twitch/status/1347953496964931601) in [recent PogChamp reveals](https://twitter.com/Twitch/status/1348314946501808135), to allow anyone to quickly see the latest PogChamp emote online.

*pogchamp.today is not affiliated with [Twitch Interactive, Inc.](https://www.twitch.tv/about/) Built by [Matt Cowley](https://mattcowley.co.uk/).*

### How it works

The script uses the [Get Chat Emoticons by Set](https://dev.twitch.tv/docs/v5/reference/chat#get-chat-emoticons-by-set) API endpoint that Twitch provides, using the set `0` which is the global Twitch emotes set, and then filtering for the PogChamp emote.

This emote data is then saved to a JSON file which is [ingested by the website build process](.posthtmlrc.js), using Parcel & PostHTML.

We have two GitHub Actions workflows to help with automating this process.
The first, [`build.yml`](.github/workflows/build.yml), will build and deploy the website using the latest data committed to the `master` branch of this repository, and runs every time a new commit is pushed.
The second workflow, [`update.yml`](.github/workflows/update.yml), runs on a schedule and fetches the latest PogChamp emote from Twitch. If it is a new emote, it updates the [`build/data.json`](build/data.json) and [`build/history.json`](build/history.json) files with this, before committing and pushing them to the `master` branch to trigger a site build.

## License

This project is licensed under [Apache 2.0](LICENSE). Contributions are welcome!