Automatically forwards Google Forms responses to a Discord channel via a webhook.
- On Discord, go to the desired channel and click
Edit Channel
(the gear icon). - Go to
Webhooks
->Create Webhook
, and set up your webhook as you wish. - Copy the
WEBHOOK URL
and save it somewhere.
- On your Google Form, click the icon of the 3 dots on the top right, and choose
Script Editor
. - Replace the default content with the contents of index.js.
- Click the "+" button to add a new file and replace the contents with the contents of config.default.js.
- Fill the variables with the requested information.
- Click
Save
.
- Hover the icons on the left sidebar and click
Triggers
. - On the next window, click
Add Trigger
(the blue button on the bottom right). - Set up the trigger as shown below and save:
Each Discord embed field value can only contain up to 1024 characters, and each embed as a whole can only contain up to 6000 characters. If these numbers are exceeded, the message will fail to be posted.
The script does not incorporate any character limit feature because this limit can be set directly from Google Forms, which is the ideal way (icon of the 3 dots under each response -> Response validation
-> Maximum character count
).