Skip to content

The "Command" Node Trigger Compound Node ​

Listens for a command in Twitch chat and executes the connected branch if a message starts with the given command.

Command

  • Message
  • Rest
  • Arguments
  • Sender
  • Delimiter
  • Name

Inputs ​

  • Delimiter − '!' or '#' the character marking that a message should call a command.
  • Name − The name of the command. In total this executes when a message starts with Delimiter + Name (i.e.
    when Delimiter = '!', Name = 'command', executes when message stars with '!command').

Outputs ​

  • Message − The full message object. Refer to Receive Message.
  • Rest − Everything after the command, omitting any leading spaces. (e.g. for '!command abc def 123', this is 'abc def 123').
  • Arguments − A list of arguments after the command, split by spaces. (e.g. for '!command abc def 123', this is ['abc', 'def', '123']).
  • Sender − The account object of the sender. Same as the chatter attribute of the message object. Refer to Receive Message.

Guts ​