dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.3.1
thrrwfls has joined #cinch
woodruffw has quit [Ping timeout: 276 seconds]
woodruffw has joined #cinch
woodruffw has quit [Excess Flood]
woodruffw has joined #cinch
bosma has quit [Max SendQ exceeded]
bosma has joined #cinch
Azure has quit [Ping timeout: 264 seconds]
Azure has joined #cinch
kosaho has joined #cinch
<
kosaho>
please someone can help me?
<
kosaho>
I'm trying to get the text the user type after command
<
kosaho>
e.g. !command <gettext>
<
leftylink>
would something similar to that work?
<
bosma>
match /command (.*)/, method: :command
<
bosma>
def command(m, text) etc
<
leftylink>
seems good
<
kosaho>
how I call the text and put it after the url?
<
leftylink>
the text will be available in the variable named "text"
<
leftylink>
you could use string concatenation or string interpolation to put it after the url
<
leftylink>
the example does that at line 11