Skip to content

hildakh/emoji-party

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Emoji Party

A tool to generate random combined emojis and automate emoji assignment for Notion pages using the Emoji Kitchen API, Notion, Make and Vercel

You can use it in 3 ways

  • 🎲 Generate a random emoji and save it to a file.
  • 📄 Create new Notion pages from the command line.
  • 🔄 Automate emoji assignment for Notion pages via Make.com & Vercel.

Installation & Setup


How to use it

To generate a random combined emoji & save it as png

  • Run node scrape-emoji.js from client folder
  • The new emoji is saved in the output folder as .png

To create a new Notion page with title, content & icon (emoji)

  • Run node notion-page-generator.js --title="Your page title" --content="Some content" from client folder to add a new page to your selected database. It comes with a random combined emoji!

To automate adding emojis to created & updated pages on Notion using Make

  • Create a New Vercel Project from command line. yarn run vercel and create a new project.

  • On Vercel dashboard, select your new project, navigate to settings and set the environment variables

  • From a terminal, run yarn run vercel:deploy to deploy your project

  • To test your integration locally, run yarn run vercel:dev to start a local server. Make a cURL request to Vercel's local server

    curl -X POST "http://localhost:3000/api/update-page" \
    -H "Content-Type: application/json" \
    -H "api-secret-key: api-secret-key" \
    --data '{"pageId": "a-notion-page-id"}'
    

    Watch the page on Notion as it gets its new look

  • To automate the process, go to Make and log in.

  • Click "Create a new scenario".

  • Click "Add Module" and select Notion. Select --> Watch Database Items.

  • Set up Notion and Http request modules.

Set up Notion module

You can watch items on create or update. I have created two scenarios to watch both so a created or updated page with no emiji gets the update Screenshot 2025-01-29 at 8 53 51 PM

Set up http request module

Screenshot 2025-01-29 at 9 14 04 PM Screenshot 2025-01-29 at 8 58 27 PM Screenshot 2025-01-29 at 9 03 10 PM

Set up filter for pages with no icons

Screenshot 2025-01-29 at 9 15 27 PM Screenshot 2025-01-29 at 8 56 53 PM Screenshot 2025-01-29 at 9 06 30 PM Screenshot 2025-01-29 at 8 53 11 PM

Connect your Notion database to your integration and Make

Screenshot 2025-01-29 at 9 47 55 PM

Create a notion page with no emoji. Go to your scenario on Make and Run once. Watch your notion page as it gets its emoji. Set your scenario you run as frequently as you wish. On free tier, the interval can be 15 minutes or more

Screen.Recording.2025-01-29.at.9.45.56.PM.mov

May your pages be emojied!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published