dirigeants / klasa

A class remix of the Komada Bot Framework
https://klasa.js.org
MIT License
201 stars 87 forks source link

Suggestion: awaitMessage Tool #87

Closed Skillz4Killz closed 6 years ago

Skillz4Killz commented 6 years ago

There are some really good stuff on Klasa that use reactions and paginations and make life a lot more easier and amazing with stuff like RichDisplay and RichMenu.

I was wondering if there was a chance of incorporating something similar for awaitMessages. I use this as an application of sort and was hoping for an awesome way to do this.

it would require parameters like: an object that shows how many different questions you need to be answered, time for each question, type of response like options which could use reactions etc

Let me know if I am not clear on the suggestion and would like more details I will be happy to elaborate.

kyranet commented 6 years ago

There was a plan about making an awaitMessage tool which use is similar to the commands' usage months ago, but it never got done. It was going to be something like:

awaitMessage('<minutes:integer{5,20}> <reason:string> <user:mention>');

Althought it was @pedall's suggestion if I remember correctly.

tech6hutch commented 6 years ago

I made something kind of similar, but it's much simpler, for only getting a single reply. https://github.com/dirigeants/klasa-pieces/pull/15

bdistin commented 6 years ago

It's part of the 1.0.0 plan. Just not done. Waiting on changes some changes to d.js which may cause me to rewrite usage anyway. Avoiding rewriting it twice for this purpose and the changes coming to CommandMessage.