Giter Site home page Giter Site logo

birthday-celebrator's Introduction

Birthday Celebrator

Even if you love your friends, some times you may forget their birthday and feel bad about that. So are your friends. This script helps you to make sure to celebrate everyone's birthday in the chat group. It's set up for LINE chat app, but the most part should be compaditble with any other chat app.

Preparation

How it works

  1. Copy this code and paste on your Google Apps Script project.
  2. Customize birthday info, message options, etc.
  3. Go to LINE Developer console and check your channel's access token (if it doesn't exist or expired, issue a new one). Assign it to CHANNEL_ACCESS_TOKEN.
  4. Go to LINE Developer console and check your channel's userID and assign it to to_ID (replace it with groupID later).
  5. Set up a developer account with GIPHY and obtain an api key, assign it to API_KEY in getVideo function.
  6. Set up a developer account with Unsplash and obtain a client ID, assign it to ACLIENT_ID in getPreviewImage function.
  7. Deploy > New deployment.
    image
  8. Select "Web app".
    image
  9. Choose "Anyone" for access permission.
    image
  10. Copy "Current web app URL" and paste it to "Webhook URL" input form on the LINE console.
  11. Become a "friend" with your channel and invite it to the chat group.
  12. Send some text in the chat group, then you will get the groupID from the channel.
  13. Assign the groupID to to_ID, delete or comment out doPost function.
  14. Click the clock icon and set a trigger for sendMessage function.
    image
  15. Do 7-10 again

birthday-celebrator's People

Contributors

rami6 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.