#Multi-Step Interaction or waiting for response

1 messages ยท Page 1 of 1 (latest)

steep bloom
#

Hey guys,
I need some help because I couldn't figure out if there's already an built-in functionality in Discord.Net to build some sort of dialog between the user and bot.

E.g. a user starts with a conversation with /conversate and then it's just a "normal" conversation with questions and answers between the bot and the user.

In the examples I just find simple command-response examples. Just want to know if I have to implement some framework for that by myself or if there's already sth. I just want to figure out if there's some other way than button or modal components.

lyric horizon
#

Just so I get this right, you want to know if there's a way for the bot to just "respond" to a regular message?

steep bloom
#

Hi @lyric horizon more like a multi-step dialog where you keep the context or wait for a response of the same user before continuing. Like
await DeferAsync();
...
await FollowUpAsync(...)
...
await UserResponseAsync(...)
...
await FollowUpAsync(...)

lyric horizon
# steep bloom Hi <@219561173194899456> more like a multi-step dialog where you keep the contex...

Short answer: Kind of? The process would include some of those methods you've listed.
Long answer: I know I've seen bots do stuff like that before. To my knowledge, in D.NET we don't have a straightforward function or method for this specific thing. You'll probably need to come up with your own framework/flow. I've seen some bots that straight-up parses the text a user sends, and the button solution. There are also select menus, although that requires filling in answers for users.
If you'd like, I could list some methods in the docs you may want to use, and what they do.
Am I still misunderstanding your question ๐Ÿ˜…โ“

steep bloom
#

No, you understand my question quite wellt ๐Ÿ˜„
Thank you! I already thought about implementing an own framework because you've to handle sort of a state of the conversation so the bot knows how to keep up with the conversation without looping anwers. I will have a look on github to get some ideas and mix them with the interaction framework of Discord.Net. ๐Ÿ™‚