Giter Site home page Giter Site logo

kelo / google-forms-to-discord-extended Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iku/google-forms-to-discord

22.0 22.0 4.0 64 KB

Automatically send Google Forms to Discord! Now including support for longer responses and Forum channels!

License: MIT License

JavaScript 100.00%
discord discord-forum-webhook discord-forums discord-thread-webhook discord-webhook forum-channel google-forms google-forms-discord-thread-webhook google-forms-to-discord webhook

google-forms-to-discord-extended's Introduction

I'm a Software Engineer who likes open source and collaboration.

I'm interested & learning about DevOps/DX.

google-forms-to-discord-extended's People

Contributors

aithne99 avatar alexjfox avatar axvin avatar chiragzq avatar dashwav avatar iku avatar infinitepower18 avatar kelo avatar lautenschlager-id avatar stijnb1234 avatar tt2468 avatar udit2303 avatar untuned avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

google-forms-to-discord-extended's Issues

Multiple forum threads being created

There seems to be an issue where if the messages are divided into multiple parts, it creates a thread for each response. Likewise, a similar case is with pings, where it pings for each embed instead of just once.

image_2023-02-20_172133136

Request failed for https://canary.discord.com returned code 400.

Followed the exact same code as the one from script.gs file, except modified the webhook URL.
Received the following error:

Exception: Request failed for https://canary.discord.com returned code 400. Truncated server response: {"embeds": ["0"]} (use muteHttpExceptions option to examine full response)

Searched previous issues and from the main repository and thought it would be something related to one of the following:

  1. Too many characters
    This however does not seem to be the case - I logged currentEmbedCharacterNum and it outputted 25.
  2. A question without "required" being enabled.
    I already have all questions required.

Unsure of what actually caused this so any help would be appreciated. Thanks in advance.

Split-Response Resends Content Field

Modified my Payload to the following

            "content": "Hey <@&457179386064535572>s and <@&457179122104270848>s, we've got a new application!",
            "embeds": [{
                "title": "Oakridge Application Response",
                "fields": items,
                "color": 1242520,
                "footer": {
                    "text": "Application submitted."
                },
                "timestamp": new Date().toISOString()
            }]
        })

But it resends the Content when a response is split between two messages. Not a big issue whatsoever but wanted to let you know anyway. Also, can this be PR'd to the original repo? You've done absolutely fantastic work.

What about it creating a thread in a normal channel?

So we have threads made in Forumss? But what about the normal threads you can make in a channel?
I just thought it was a general question I should ask.

as most people don't actually use the forum system, and I really wanted to know if it was possible.

Something isn't working

I have been using the forum_script.gs for several months now, and it has been working perfectly fine.

However, only a few weeks ago did issues start occurring where forums fail to be created. Here is a recent failed execution of what has occurred:
image

However, when I also test it myself, it works perfectly, it seems only to fail when others submit a response:
image

I have already read HELP.md and believe that each of these points was covered in my tests.

Changing Titles/Footer Examples

Hi Kelo,

I just discovered this bot today and I'm already having a blast getting it setup in my discord. I have everything setup, but at the moment I'm finding myself manually editing the titles and thread titles so that there is an easy way to distinguish them (see circled sections):

image

Would you be able to provide an example of how you get the forum threads/titles to change using the "Cosmetic" options in the readme? One other question I have is if it is possible to edit the thread title to be one of the answers in the form sheet. Thanks for managing this bot!

forum_script.gs

sorry, I'm having an issue figuring out where to put the thread id in the forum_script.gs script. If I want responses to only be sent to a specific thread, should "thread_name" be omitted? thank you in advance.

Checkboxes and Cont.

Hello,

I was able to get this script to work wonderfully. Unfortunately my google form has some questions with checkboxes. The script spits out those as follows:

`Question: (cont.)
Checkbox1SingleWordValue

Same: (cont.)
Checkbox2SingleWordValue
`

Putting checkboxe values with a comma and space between them would work much better but I'm not familiar with the language and the code enough to do so, and attempts to alter the code have had no effect.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.