No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


The Mojifier is a Twitter bot which replaces peoples faces in images with emojis matching their emotion.

It's built on top of Azure using various Services like Logic Apps, Functions, Cognitive Services and Redis.

You can find out more information about TheMojifier and how it was built here


This Function app requires an instance of Redis, you can install one locally or use one created on Azure. It will also need to make calls using the Twitter API so you'll need to create a Twitter App and create an API key for it.


To use this app you'll need to setup some configuration files.

Create a file called local.settings.json in the root folder.

You'll need to add to this file the credentials for Twitter and also connection information for Redis.

  "IsEncrypted": false,
  "Values": {
    "TWITTER_CONSUMER_KEY": "<access-consumer-key>",
    "TWITTER_CONSUMER_SECRET": "<access-consumer-secret>",
    "TWITTER_ACCESS_TOKEN_KEY": "<access-token-key>",
    "TWITTER_ACCESS_TOKEN_SECRET": "<access-token-secret>",
    "REDIS_HOST": "<redis-host>",
    "REDIS_PORT": "6380",
    "REDIS_PASS": "<redis-password>",
    "USER_THROTTLE": "360"


This repo only contains the code for the Azure Functions part of the Mojifier.

To run locally simply run

npm install

Then ensure you have the Azure Functions CLI installed and run

func host start

This will start the function app running on localhost, you can now make HTTP requests against the endpoints.


You can host your own version of this code by:

  • Checking out the code in this repo.
  • Creating your own Azure Functions App in the Portal.
  • Uploading the contents of this folder to your Function App, either by using the Azure Functions CLI tool or by using the VS Code Extension.