harvsg / r-spacex-ai-bot Goto Github PK
View Code? Open in Web Editor NEWA google cloud function for a r/SpaceX chatbot using the r/SpaceX API
License: Other
A google cloud function for a r/SpaceX chatbot using the r/SpaceX API
License: Other
https://dialogflow.com/docs/reference/api-v2/
This sends completely different JSON for processing. Currently in Beta, it will likely become the new method.
deploy:
- provider: script
script:
# change FUNCTION_NAME PROJECT and REPO to the values from the cloud console: https://console.cloud.google.com/code/develop. Note function name is from your main file, usualy index.js, the main function exports.FUNCTION_NAME
- gcloud --quiet beta functions deploy SpaceXFulfillment --source-url https://source.developers.google.com/p/r-spacex-ai/r/r-SpaceX-AI-google-source-repo --source-path / --trigger-http
#- gcloud beta functions call SpaceXFulfillment --file=requestExample.json # NOT working, it would be good to emulate and test the function and then only deploy if successful!
functions call SpaceXFulfillment --file=requestExample.json
should, in theory, test the function, it would be great to make deployment conditional on the outcome of that.
Edit: --file
is not a valid flag
See TODO.md
Issue opened with on google cloud functions hub.
Travis build is triggered and builds fine
However the google source repo does not update to the latest commit from the github repo, so what builds is an old build
See commented-out lines:
Lines 62 to 76 in 73fbfde
Related to issue r-spacex/SpaceX-API#53.
Could use various if
statements to handle it, but would only be a temporary fix as it is in the pipeline to be done on the API end. Best to wait until data-structure is near-final.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.