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

[Feature Request] Stop #118

Open
1 of 2 tasks
ShowMeYourSkil opened this issue Jan 16, 2021 · 2 comments
Open
1 of 2 tasks

[Feature Request] Stop #118

ShowMeYourSkil opened this issue Jan 16, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@ShowMeYourSkil
Copy link
Member

Category

  • New Command
  • Enhancement

Describe your Idea

Describe your suggestion for a new command.

Reaction Authorization to stop Progen

Additional information

Smaller information that could be useful.

Reaction ✅

command steps

Steps as the command can be used.

  1. 'pb!stop"
  2. ':white_check_mark:'
  3. 'Progen shuts down'
@ShowMeYourSkil ShowMeYourSkil added the enhancement New feature or request label Jan 16, 2021
@ShowMeYourSkil
Copy link
Member Author

ShowMeYourSkil commented Feb 13, 2021

event.getTextChannel().sendMessage("Stop").queue(msg -> {
    msg.addReaction("✅").queue();
});

I have add the reaction, but i dont know how can I programm that progen stop his run, when the bot owner push this reaction. Also should the reaction run only by Bot Owner.

@noobidev
Copy link
Member

noobidev commented Feb 13, 2021

Save message id, enable reaction listener, check message id and author id on reaction, perform shutdown or error, disable reaction listener at the end

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

2 participants