Coder Social home page Coder Social logo

ggwebhook's Introduction

ggwebhook

config

webhook.gs

var channelToken = ''; linebot token

var ss = SpreadsheetApp.openByUrl(""); sheet url

var sheet = ss.getSheetByName(""); sheetname

line 50 : var headers = { "contentType": "application/json", "headers":{"Authorization": "Bearer xxxxxxxx"} ใส่ linebot token แทนที่ xxx };

Deploying a script as a web app

https://developers.google.com/apps-script/guides/web

ใช้ url ที่ได้เป็น webhook

upscore.gs

var ss = SpreadsheetApp.openByUrl(""); sheet url

var sheet = ss.getSheetByName(""); sheetname

Deploying a script as a web app

https://developers.google.com/apps-script/guides/web

ใช้ url ใส่ที่ var theUrl ในไฟล์ html_actuator.js

2048\js\html_actuator.js

line 144 : var theUrl = "";

สร้าง sheet ตามรูปแบบในไฟล์ภาพ

สร้าง liff game 2048 นำ url ใส่ line 649 : var mess = [{'type': 'text', 'text': 'line://app/xxx'}];

คำสั่งบอท

-ส่ง location : bot reply สภาพอากาศและค่าดัชนีคุณภาพอากาศ

-พิมพ์ oil น้ำมัน ราคาน้ำมัน : bot reply ราคาน้ำมัน บางจาก

-พิมพ์ qr ตามด้วย ข้อความ,ลิงค์,เบอร์โทร : bot reply qr code (gen qr code จากข้อความหลัง วรรค)

-พิมพ์ 2048 : bot reply liffapp game 2048

-พิมพ์ myscore : bot reply คะแนนเกมส์ 2048 ของเรา

-พิมพ์ gametop10 : bot reply list top 10 game 2048

ggwebhook's People

Contributors

itchampclub 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.