Skip to content

Instantly share code, notes, and snippets.

@jschang19
Created August 15, 2021 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jschang19/8410a54e83c74cbd9ab16efc28d0b897 to your computer and use it in GitHub Desktop.
Save jschang19/8410a54e83c74cbd9ab16efc28d0b897 to your computer and use it in GitHub Desktop.
else if (userMessage == "報名人數" | userMessage == "名單") {
var ready_namelist = "【 報名名單 】\n";
for (var x = 1; x <= current_list_row; x++) {
ready_namelist = ready_namelist + "\n" + reserve_list.getRange(x, 1).getValue();
}
reply_message = [
{
"type": "text",
"text": "共有 " + current_list_row + " 位同學報名 ✋"
},
{
"type": "text",
"text": ready_namelist
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment