A simple script I wrote on Python that utilizes the Twitch and BTTV APIs to archive emotes. Very unpolished/finished. Was originally going to be used to import these emotes to a Slack workspace.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Alex Huddleston 68570c11f2 I can't believe I still accidentally commit stuff like this. Corrected Client ID commit. 1 year ago
.gitignore I can't believe I still accidentally commit stuff like this. Corrected Client ID commit. 1 year ago
Pipfile Iterative commit. 1 year ago
README.md I can't believe I still accidentally commit stuff like this. Corrected Client ID commit. 1 year ago
twitchify-slack.py I can't believe I still accidentally commit stuff like this. Corrected Client ID commit. 1 year ago

README.md

Twitchify Slack

A Python script meant to utilize the https://twitchemotes.com API to import custom emojis to Slack.

Installation

Since you're using an API you have to sign in with Twitch as a developer and "register an app".

https://dev.twitch.tv/console/apps

Once you've registered, click on manage and grab the "Client ID".

Save that to a file in the root directory of this project as .client_id or save as an environment variable called TWITCH_APP_CLIENT_ID.

Ensure you have pipenv installed (python -m pip install pipenv) and then install the packages in the Pipfile.

pipenv install

Usage

Once you install the packages, you should be all set. Run the following command to start the script:

pipenv run python twitchify-slack.py

This script takes a while, but it will download all the official Twitch emotes and BTTV emotes and output them to the out/ directory, with the names corresponding to the lowercase versions of their codes on Twitch.