This Google Apps Script listens for changes in a specified Google Sheets document and sends the updated row data to a Discord channel via a webhook in an embedded format.
- Monitors edits in all cells of a specific sheet (
Blad1
). - Sends an embedded message to a specified Discord channel via webhook with the updated data.
- A Google Sheets document with a sheet named
Blad1
. - A Discord webhook URL. You can create one by following this guide.
- Open your Google Sheets document.
- Click on
Extensions
>Apps Script
. - Delete any code in the script editor and paste in the following code
- Replace
'INSERT YOURWEBHOOK'
with your actual Discord webhook URL. - Replace
'YOUR SHEETNAME'
with the sheet you want to log. - Save the script.
- In the Apps Script editor, click on the clock icon to open the triggers page.
- Click on
+ Add Trigger
. - Set the function to
editRow
, the deployment toHead
, the event source toFrom spreadsheet
, and the event type toOn edit
. - Save the trigger.
Once the trigger is set up, any edit made to the sheet will automatically send the updated row's data to the specified Discord webhook in an embedded message format.
This project is licensed under the MIT License - see the LICENSE file for details.