dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.3.1
catepillar has quit [Quit: WeeChat 1.0.1]
catepillar has joined #cinch
Azure has quit [Ping timeout: 252 seconds]
Ch4mp has joined #cinch
<Ch4mp> hi, could somebody tell me why this: https://gist.github.com/RealCh4mp/9ab7d2aba27c96872cf425b7ca8c0f4a doesn't work?
<Ch4mp> It should work that I type !1v1 something
<Ch4mp> but it doesn't do anything
<Ch4mp> I'm new to this..
<Ch4mp> and it's like my very first Ruby program :)
<Ch4mp> nobody?
<Gizmokid2005> Ch4mp: you might want to look at some of the examples
<Gizmokid2005> Ch4mp: are you trying to use this as a plugin?
<Ch4mp> thanks il try it
<Ch4mp> like this?
<Ch4mp> on:message, /^!1v1 (.+?) (.+)/ do |m, who| m.reply "#{m.user.nick} nexes " + User(who).send + "..." m.reply "DMG taken:" + rand(0..100) end
<Ch4mp> it doesn't work
<leftylink> Ch4mp: don't forget to look at the window in which you run your bot for helpful info as to why it doesn't work
<leftylink> Ch4mp: with two captures in the regex, the block should take three arguments (since the block will always take the Message as an argument, plus any captures)
<Ch4mp> yeah ok il study regex
Ch4mp has left #cinch [#cinch]
bosma has left #cinch [#cinch]
irsol has quit [Ping timeout: 244 seconds]
irsol has joined #cinch
Azure has joined #cinch