ChanServ changed the topic of #cinch to: The IRC Framework | http://groups.google.com/group/cinch-ruby/ | Latest version: Cinch 2.0.4 – Change log at http://bit.ly/14Q4s6Z – Migration guide at http://bit.ly/GO4qkW | This channel is being publicly logged at http://irclog.whitequark.org/cinch/
txdv has quit [Remote host closed the connection]
txdv has joined #cinch
v0n has joined #cinch
Mathieu has quit [Ping timeout: 256 seconds]
zer0python is now known as joeyk
joeyk is now known as zer0python
<zer0python> is there an easy way to set the bot name as a prefix, that is instead of using like '!', one could just say "MyBot: do blah" or "MyBot, do blah" ?
<zer0python> doesn't seem to like it if I try to set prefix to 'MyBot: '
<zer0python> or maybe it was a typo -_-
leftylink has quit [*.net *.split]
<catepillar> if you dont ever change the bot name you could easily do that with prefix
<catepillar> I don't know the order of declaration and execution of things, but you *might* be able to use something like @bot.nick for the name if it is gonna be changing, but dominikh would be better to answer that
leftylink has joined #cinch
rickmasta has quit [Ping timeout: 264 seconds]
rickmasta has joined #cinch
v0n has quit [Ping timeout: 260 seconds]
framling has joined #cinch
rikai has quit [Ping timeout: 246 seconds]
sleetdrop has joined #cinch
<waxjar_> zer0python, you can set a lambda that returns the name of the bot as the prefix
v0n has joined #cinch
postmodern has quit [Quit: Leaving]
txdv has quit [Remote host closed the connection]
aytch has quit [Remote host closed the connection]
davidh_ has joined #cinch
<davidh_> cinch v. 2.0.4; can't get plugins to work. tried the example on the github page, with no success. tried a few other plugins too.
<davidh_> the normal Hello, World example on github works fine
<dominikh> the default prefix for plugins is !
<dominikh> so !hello for the hello plugin
<davidh_> ah, let me try that...
<davidh_> ta daaaa… it works. thanks. :)
txdv has joined #cinch
sleetdrop has quit [Quit: Computer has gone to sleep.]
bhaak has quit [Read error: Operation timed out]
bhaak has joined #cinch
godzirra has joined #cinch
<godzirra> Howdy guys.
<godzirra> Is "react_on :private" deprecated?
<dominikh> nope
<dominikh> oh, yes
<dominikh> wait
<godzirra> What did it change to? I looked in the docs but I didn't see anything obvious
<dominikh> maybe :>
<godzirra> ha
<godzirra> Well, I upgraded cinch and it tells me its a syntax error now. ;)
<dominikh> set :react_on, :private, probably
<dominikh> syntax error? doubtful, that's Ruby's task to determine, not Cinch's ;)
<godzirra> zirra.rb:9: syntax error, unexpected ',', expecting keyword_end :react_on, :private
<dominikh> show me line 9
<godzirra> :react_on, :private
<dominikh> well that doesn't make any sense :P
<dominikh> never did
<godzirra> Its part of a class... it used to work with just "react_on :private" at the top of the class..
<dominikh> yes, react_on, not :react_on :P
<godzirra> Thats what I had before.
<dominikh> either way, it's set :react_on, :private now
<godzirra> Ah.
<godzirra> Let me try that.
<godzirra> That did it. THanks. Same with prefix. Cool
<zer0python> what's the global variable to use for accessing the bot's configuration ? (if there is one ?)
<dominikh> global variable? none.
<dominikh> that wouldn't make a lot of sense considering there can be many bots in a single script
<zer0python> well, I basically wanted something like -> set :prefix => lambda { "#{bot.nick}: " }
<dominikh> the lambda has an argument, the message object. the message object has a reference to the bot
<dominikh> lambda { |m| "#{m.bot.nick}: " }
<zer0python> ah
<godzirra> Thanks dominikh
<dominikh> cheers.
<zer0python> dominikh: thanks, that worked
<dominikh> :)
<zer0python> I don't see where at in the docs where it says set can take a lambda like that though :S
<dominikh> http://rubydoc.info/gems/cinch/Cinch/Plugin/ClassMethods:prefix it says it can take a Proc, but that's not well documented, I agree…
<Cinchy> [URL] Method: Cinch::Plugin::ClassMethods#prefix — Documentation for cinch (2.0.4)
<dominikh> I'm sure it's documented *somewhere*…
godzirra has quit [Disconnected by services]
<zer0python> probably
* zer0python just tries to avoid asking folks if it's in the docs somewhere
<dominikh> the docs aren't too great
davidh_ has left #cinch [#cinch]
zer0python is now known as _rr
_rr is now known as zer0python
v0n has quit [Read error: Connection reset by peer]
v0n has joined #cinch