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

New condition option for giveaways #107

Open
tunikakeks opened this issue Sep 20, 2020 · 4 comments
Open

New condition option for giveaways #107

tunikakeks opened this issue Sep 20, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@tunikakeks
Copy link

Please make it able to Stop a giveaway

@Nico105
Copy link
Collaborator

Nico105 commented Sep 20, 2020

So you mean that you can stop it and then you continue it some time later?

@tunikakeks
Copy link
Author

Yes, and that I can Stop it before it ends

Example:

I will end the Giveaway when 100 Users on my Discord. If I have 100 Users on my Discord Server i would Stop it

@Shashank3736
Copy link
Contributor

Hmm, something like the opposite of all present giveaway.
I guess you mean a way to create giveaways that never end until we run stop() method. These type of giveaways have no reason to be created by the module as you can simply make an announcement where members can react and do an eval to get a random member from the reaction when you achieve 100 members.

Still, you can achieve this from the current version.

  • Create a giveaway with an expected time until you achieve that goal (100 members). If you have no idea about time then make it 1 year long.
  • Now add a guildMemberAdd event in your code.
  • Check if your server reached 100 members or not, if yes end the giveaway by using end method, else return.
  • If you reached the time limit before 100 members goal then extend the time by edit method.

By this way, you can easily achieve it without any hassle. But in the next release, I hope this type of things will become pretty easy to make.

But with your this feature request I think @Androz2091 should add one more function which we can customise on giveaway and manager creation. A function named as condition which will be checked before ending the giveaway.

  • If condition function returns true the giveaway will be ended else it just edit the embed and say the preset message. This type of thing can help users to make a giveaway with minimum participants or anything which they need.

@Androz2091 Androz2091 added the enhancement New feature or request label Dec 7, 2020
@Androz2091 Androz2091 changed the title Feature request New condition option for giveaways Dec 7, 2020
@ririko5834
Copy link

Please add it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants