MinaFoundation / gptSurveySummarizer

Discord bot to gather your thoughts
2 stars 2 forks source link

Bug: Bot tries to handle the question instead of the response #27

Closed CristinaEche closed 2 months ago

CristinaEche commented 2 months ago

When testing the command /Gptsurvey view, in a long question (length of 89 characters), the bot threw an error:

image

Marton checked the error and informed:

It says that the response it is trying to handle is too long. The code has to be adjusted so it can handle strings longer than 100 characters. But I see it is trying to handle the question instead of the response

│   Invalid string length                                                                                                                                     │
│                                                                                                                                                             │
│   Expected: expected.length <= 100                                                                                                                          │
│                                                                                                                                                             │
│   Received:                                                                                                                                                 │
│   | 'respondButton-1- Do you agree with the approach presented in the blogpost? (1 is least agreement, 5 is most)' 

It seems to be a bug in the code that makes the application to parse the inputs of the users incorrectly

es92 commented 2 months ago

Fixed now on main