Skip to content

Commit 4714a6a

Browse files
PierrickVouletpierrick
and
pierrick
authored
feat: rebrand chat bot to chat app (#477)
Co-authored-by: pierrick <[email protected]>
1 parent be16446 commit 4714a6a

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Codelab tutorials combine detailed explanation, coding exercises, and documented
135135
- [BigQuery + Sheets + Slides](http://g.co/codelabs/bigquery-sheets-slides)
136136
- [Docs Add-on + Cloud Natural Language API](http://g.co/codelabs/nlp-docs)
137137
- [Gmail Add-ons](http://g.co/codelabs/gmail-add-ons)
138-
- [Hangouts Chat Bots](http://g.co/codelabs/chat-apps-script)
138+
- [Google Chat Apps](https://developers.google.com/codelabs/chat-apps-script)
139139

140140
## Clone using the `clasp` command-line tool
141141

Diff for: solutions/chat-bots/schedule-meetings/Code.js renamed to solutions/schedule-meetings/Code.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// To learn how to use this script, refer to the documentation:
2-
// https://developers.google.com/apps-script/samples/chat-bots/schedule-meetings
2+
// https://developers.google.com/apps-script/samples/chat-apps/schedule-meetings
33

44
/*
55
Copyright 2022 Google LLC
@@ -18,24 +18,24 @@ limitations under the License.
1818
*/
1919

2020
// Application constants
21-
const BOTNAME = 'Chat Meeting Scheduler';
21+
const APPNAME = 'Chat Meeting Scheduler';
2222
const SLASHCOMMAND = {
2323
HELP: 1, // /help
2424
DIALOG: 2, // /schedule_Meeting
2525
};
2626

2727
/**
2828
* Responds to an ADDED_TO_SPACE event in Google Chat.
29-
* Called when the bot is added to a space. The bot can either be directly added to the space
30-
* or added by a @mention. If the bot is added by a @mention, the event object includes a message property.
31-
* Returns a Message object, which is usually a welcome message informing users about the bot.
29+
* Called when the Chat app is added to a space. The Chat app can either be directly added to the space
30+
* or added by a @mention. If the Chat app is added by a @mention, the event object includes a message property.
31+
* Returns a Message object, which is usually a welcome message informing users about the Chat app.
3232
*
3333
* @param {Object} event The event object from Google Chat
3434
*/
3535
function onAddToSpace(event) {
3636
let message = '';
3737

38-
// Personalizes the message depending on how the bot is called.
38+
// Personalizes the message depending on how the Chat app is called.
3939
if (event.space.singleUserBotDm) {
4040
message = `Hi ${event.user.displayName}!`;
4141
} else {
@@ -53,8 +53,8 @@ function onAddToSpace(event) {
5353

5454
/**
5555
* Responds to a MESSAGE event triggered in Chat.
56-
* Called when the bot is already in the space and the user invokes it via @mention or / command.
57-
* Returns a message object containing the bot's response. For this bot, the response is either the
56+
* Called when the Chat app is already in the space and the user invokes it via @mention or / command.
57+
* Returns a message object containing the Chat app's response. For this Chat app, the response is either the
5858
* help text or the dialog to schedule a meeting.
5959
*
6060
* @param {object} event The event object from Google Chat
@@ -176,15 +176,15 @@ function onCardClick(event) {
176176
}
177177

178178
/**
179-
* Responds with help text about this chat bot.
179+
* Responds with help text about this Chat app.
180180
* @return {string} The help text as seen below
181181
*/
182182
function getHelpTextResponse_() {
183-
const help = `*${BOTNAME}* lets you quickly create meetings from Google Chat. Here\'s a list of all its commands:
183+
const help = `*${APPNAME}* lets you quickly create meetings from Google Chat. Here\'s a list of all its commands:
184184
\`/schedule_Meeting\` Opens a dialog with editable, preset parameters to create a meeting event
185185
\`/help\` Displays this help message
186186
187-
Learn more about creating Google Chat bots at https://developers.google.com/chat.`
187+
Learn more about creating Google Chat apps at https://developers.google.com/chat.`
188188

189189
return { 'text': help }
190190
}

Diff for: solutions/chat-bots/schedule-meetings/appsscript.json renamed to solutions/schedule-meetings/appsscript.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"exceptionLogging": "STACKDRIVER",
44
"runtimeVersion": "V8",
55
"chat": {
6-
"addToSpaceFallbackMessage": "Thank you for adding this Chat Bot!"
6+
"addToSpaceFallbackMessage": "Thank you for adding this Chat App!"
77
}
88
}

0 commit comments

Comments
 (0)