Java IRC bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

QuitCommand.java 661B

123456789101112131415161718192021222324252627
  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5. package com.md87.charliebravo.commands;
  6. import com.md87.charliebravo.Command;
  7. import com.md87.charliebravo.CommandOptions;
  8. import com.md87.charliebravo.InputHandler;
  9. import com.md87.charliebravo.Response;
  10. /**
  11. *
  12. * @author chris
  13. */
  14. @CommandOptions(requireAuthorisation=true, requireLevel=100)
  15. public class QuitCommand implements Command {
  16. /** {@inheritDoc} */
  17. @Override
  18. public void execute(final InputHandler handler, final Response response, final String line) {
  19. response.sendMessage("Goodbye", true);
  20. System.exit(0);
  21. }
  22. }