This repository is a combination of snippets and codes from GForms-to-Discord and more.
- To use this, first create a form on Google Forms
- Then go to Code Editor (3 dots on top-right, then Code Editor)
- Paste the code from code.gs
- Go back to form and specify the form to get the source (use array counting per question)
If you have 10 questions and want to use question 6
The question is located in array number 5
- Then edit the line 44, inside the
itemResponses[]
, specify the array to be used (Read Step 4) - And then edit too the line 50, inside Array() inser the answers (use double quotes each word, then to separate use comma)
// EXAMPLE
Array("US","Great Britain","Marshall Plan","Smithsonian Agreement","Democratic Governance","Human rights","Environment","Critics","Dollar","Gold","gentlemans agreement","John F. Kennedy","New Hampshire","JOHN MAYNARD KEYNES","HARRY DEXTER WHITE","fundamental disequilibrium","liquidity","bank and fund","letter of intent","Independent Evaluation Office","Independent Evaluation Group","parody","lack traction","mega projects","forests")
- Then Save use
Ctrl+S
- Then follow the Step 5 in order to get it published to discord
All answers are not case-sensitive!
To become case-sensitive, edit the line 76 to:
const final = getUniqueValuesWithCase(data, true)