#How to wait for user to send a message and then send the next one

1 messages · Page 1 of 1 (latest)

sharp hornet
#

I am collecting answers to a survey, questions are stored in a list.

How would I wait for user to give answer before sending the next question?

@component_callback("beginVerif")
async def my_callback(ctx: ComponentContext):
    for str in questionsList:
        await ctx.send(str)```
grim palmBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

sharp hornet
#

yeah I try but it is my first time actually using docs

#

so I am kinda just finding my way around it

chilly owl
#

You first and best source for all knowledge are docs. Second are docs guides. Don't be afraid of using them

sharp hornet
#

noted

chilly owl
#

Also, you can sometimes check docstrings of any object(docs are generated from them) and even check how it works (it's not that complicated tbh)

sharp hornet
#

already did that heh

#

well this works, another issue closed