$(eval cc = `$(urlfetch json https://script.google.com/macros/s/AKfycbwNZIQhStcNYfLJecZ1_TkAbhKkqL3yNZl4_mcu-XHddivAAdT7k2B8zeueq3VH4UCzUQ/exec)`.split(","); cc[Math.floor(Math.random() * cc.length)])
[16:39] 阿痕 (ds83171): !CC
[16:39] Nightbot: 我嘗著你話裡面的奶油 溜啊溜 聽過的每句話都很可口 油啊油
// 複製 Sheet 網址裡 [sheet-id] 的部份
// https://docs.google.com/spreadsheets/d/[sheet-id]/
const SpreadSheetID = "你的SheetID";
const SpreadSheet = SpreadsheetApp.openById(SpreadSheetID);
function getSheet(sheetName) {
return SpreadSheet.getSheetByName(sheetName);
}
function doGet(){
const Sheet = getSheet('Sheet1');
var rowLength = Sheet.getLastRow() - 1; // 列數
//var columnLength = Sheet.getLastColumn(); // 欄數
//getRange (startRow,startCol,NumRows, NumCols)
var allData = Sheet.getRange(2, 1, rowLength, 1).getValues()
return ContentService.createTextOutput(allData);
}