Method: Cinch::Target#action

Defined in:
lib/cinch/target.rb

#action(text) ⇒ void

This method returns an undefined value.

Invoke an action (/me) in/to the target.

Parameters:

  • text (#to_s)

    the message to send

See Also:

Since:

  • 2.0.0



107
108
109
110
# File 'lib/cinch/target.rb', line 107

def action(text)
  line = text.to_s.each_line.first.chomp
  @bot.irc.send("PRIVMSG #{@name} :\001ACTION #{line}\001")
end