annotation Tourmaline::Command

Overview

Define a new Command. By default all commands start with a / and commands are accessable to all chat types. You can change these defaults by supplying named parameters to the annotation.

Options:

Example:

@[Command("help", prefix: "!", private_only: true)]
def help_command(client, update)
  update.message.not_nil!.reply("This is a help message")
end

Defined in: