Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reactions based events #2

Open
V-ed opened this issue Sep 21, 2018 · 0 comments
Open

Add reactions based events #2

V-ed opened this issue Sep 21, 2018 · 0 comments

Comments

@V-ed
Copy link
Collaborator

V-ed commented Sep 21, 2018

@V-ed commented on Sun Apr 15 2018

This could make for some interesting behaviors such as visual confirmation (see example below) or voting!

example

Just some explanations for that example : The bot could send a message with default reactions (choices) of which the user would add a reaction (by clicking on the reaction he wants) to input his choice.

In other words, this would enable a new interaction method with the bot, which is always useful.


@V-ed commented on Mon Jul 30 2018

EDIT : This behavior of creating ReactForms easily is tracked in #124.


TODO :
Track the message ID of the form in the buffer for the TextChannel and the available options.

A ReactOption object could be created to track what option is what and what has been selected. This could be part of a ReactMessage where the id of the message would be stored (the first line of this comment).

I imagine something like this :

public class ReactMessage {
	
	public ReactMessage(String messageId, ReactOption... options){
		[...]
	}
	
}

and this for the ReactOption :

public class ReactOption {
	
	public ReactOption(String emoji, int countBeforeChosen){
		[...]
	}
	
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant