Class CommandExecutor

java.lang.Object
dev.sympho.modular_commands.execute.CommandExecutor
Direct Known Subclasses:
MessageCommandExecutor

public class CommandExecutor extends Object
Executor that receives events and invokes triggered commands as appropriate.
Since:
1.0
Version:
1.0
  • Constructor Details

    • CommandExecutor

      protected CommandExecutor(GatewayDiscordClient client, Registry registry, PipelineBuilder<?,?,?,?> builder)
      Creates a new instance.
      Parameters:
      client - The client to receive events from.
      registry - The registry to use to look up commands.
      builder - The builder to use for constructing the event processing pipeline.
  • Method Details

    • start

      public boolean start()
      Start receiving events and executing commands.
      Returns:
      true if the call started the executor, false if it was already started.
    • stop

      public boolean stop()
      Stops receiving events and executing commands.
      Returns:
      true if the call stopped the executor, false if it was already stopped.