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> hi all
<kosaho> please someone can help me?
<kosaho> I'm trying to get the text the user type after command
<kosaho> e.g. !command <gettext>
<kosaho> and reply "https://duckduckgo.com/?q=<text>" (duckduckgo is only a example)
<leftylink> sounds similar to what the https://github.com/cinchrb/cinch/blob/master/examples/plugins/google.rb is doing
<leftylink> would something similar to that work?
<bosma> match /command (.*)/, method: :command
<bosma> def command(m, text) etc
<leftylink> seems good
<kosaho> http://puu.sh/q7vIA.png something like this?
<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