-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Rebrand all Node samples to use App instead of Bot (#226)
- Loading branch information
1 parent
786799c
commit cbfa22b
Showing
26 changed files
with
114 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
node/accounts-bot/package-lock.json → node/accounts-app/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
node/accounts-bot/package.json → node/accounts-app/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "accounts-bot", | ||
"name": "accounts-app", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Cloud Functions avatar app | ||
|
||
This code sample creates a simple Google Chat app that responds to | ||
a simple message with the user's avatar. | ||
|
||
## Run the sample in Google Chat | ||
|
||
Please see [instructions](https://developers.google.com/chat/quickstart/gcf-app). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
node/avatar-bot/package-lock.json → node/avatar-app/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Google Chat basic app | ||
|
||
This code sample creates a simple Google Chat app that can responds to events and | ||
messages from a room. This sample is built using NodeJS ( ExpressJS Framework ) on Standard Environment. | ||
|
||
## Run the sample locally | ||
|
||
1. Install libraries using `npm`. </br> | ||
`npm install express body-parser --save` or </br> `npm install` (if package.json is available) | ||
2. Run the sample.</br> | ||
`node index.js` | ||
|
||
## Configuring the url to Google Chat | ||
|
||
1. To configure the app to respond to @ mentions in Google Chat, follow the steps to enable the API in [Publishing apps](https://developers.google.com/chat/how-tos/apps-publish). | ||
|
||
2. When configuring the app on the **Configuration** tab on the | ||
**Google Chat API** page, enter the URL for the deployed version of the app into the **app URL** text box. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
node/basic-bot/package-lock.json → node/basic-app/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# Cloud Functions Basic Chat bot | ||
# Cloud Functions Basic Chat app | ||
|
||
This code sample creates a simple Hangouts Chat bot that responds to events and | ||
This code sample creates a simple Google Chat app that responds to events and | ||
messages from a room. The sample is built using JavaScript on Google Cloud | ||
Functions. | ||
|
||
|
||
## Run the sample in Hangouts Chat | ||
## Run the sample in Google Chat | ||
|
||
1. Create a cloud function | ||
`gcloud functions deploy basicBot --trigger-http` | ||
2. [Enable the Hangouts Chat API, configure and publish the bot](https://developers.google.com/hangouts/chat/how-tos/bots-publish). | ||
`gcloud functions deploy basicapp --trigger-http` | ||
2. [Enable the Google Chat API, configure and publish the app](https://developers.google.com/chat/how-tos/apps-publish). | ||
Make sure to register the URL for the App Engine instance as the | ||
**HTTP endpoint** of the bot. | ||
1. Add the bot to a room or direct message. | ||
2. Send the message to the bot with an @-message or directly in a DM, example: | ||
`@BotName i love dogs` | ||
**HTTP endpoint** of the app. | ||
1. Add the app to a room or direct message. | ||
2. Send the message to the app with an @-message or directly in a DM, example: | ||
`@AppName i love dogs` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.