Module: Botiasloop::Commands
- Defined in:
- lib/botiasloop/commands.rb,
lib/botiasloop/commands/new.rb,
lib/botiasloop/commands/base.rb,
lib/botiasloop/commands/help.rb,
lib/botiasloop/commands/label.rb,
lib/botiasloop/commands/reset.rb,
lib/botiasloop/commands/status.rb,
lib/botiasloop/commands/switch.rb,
lib/botiasloop/commands/archive.rb,
lib/botiasloop/commands/compact.rb,
lib/botiasloop/commands/context.rb,
lib/botiasloop/commands/verbose.rb,
lib/botiasloop/commands/registry.rb,
lib/botiasloop/commands/conversations.rb,
lib/botiasloop/commands/system_prompt.rb
Overview
Slash commands module Provides a registry-based command system for bot control
Defined Under Namespace
Classes: Archive, Base, Compact, Context, Conversations, Help, Label, New, Registry, Reset, Status, Switch, SystemPrompt, Verbose
Class Method Summary collapse
-
.command?(message) ⇒ Boolean
Check if a message is a command.
-
.execute(message, context) ⇒ String
Execute a command from a message.
-
.registry ⇒ Registry
Singleton registry instance.
Class Method Details
.command?(message) ⇒ Boolean
Check if a message is a command
108 109 110 |
# File 'lib/botiasloop/commands/registry.rb', line 108 def self.command?() registry.command?() end |
.execute(message, context) ⇒ String
Execute a command from a message
117 118 119 |
# File 'lib/botiasloop/commands/registry.rb', line 117 def self.execute(, context) registry.execute(, context) end |
.registry ⇒ Registry
Singleton registry instance
100 101 102 |
# File 'lib/botiasloop/commands/registry.rb', line 100 def self.registry @registry ||= Registry.new end |