dominikh1 changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.6
Dwarf_ has joined #cinch
Dwarf has quit [Excess Flood]
Dwarf_ is now known as Dwarf
Dwarf_ has joined #cinch
Dwarf_ has quit [Max SendQ exceeded]
Dwarf_ has joined #cinch
Dwarf_ has quit [Max SendQ exceeded]
Dwarf_ has joined #cinch
space has joined #cinch
rickmasta has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #cinch
jonahR has quit [Quit: jonahR]
rickmasta has quit [Quit: Leaving...]
postmodern has quit [Quit: Leaving]
txdv has quit [Read error: Operation timed out]
Spami has quit [Quit: This computer has gone to sleep]
rickmasta has joined #cinch
rickmasta has quit [Quit: Leaving...]
rickmasta has joined #cinch
tempestas has quit [Ping timeout: 246 seconds]
postmodern has joined #cinch
tempestas has joined #cinch
kludge` has quit [Ping timeout: 248 seconds]
kludge` has joined #cinch
tempestas has quit [Ping timeout: 256 seconds]
tempestas has joined #cinch
postmodern has quit [Quit: Leaving]
jonahR has joined #cinch
Dwarf_ has quit [Max SendQ exceeded]
Dwarf_ has joined #cinch
Dwarf_ has quit [Max SendQ exceeded]
Dwarf_ has joined #cinch
Dwarf_ has quit [Max SendQ exceeded]
Gimli has joined #cinch
Dwarf has quit [Disconnected by services]
Gimli has quit [Excess Flood]
Dwarf has joined #cinch
Dwarf has quit [Max SendQ exceeded]
Dwarf has joined #cinch
v0n has joined #cinch
Dwarf has quit [Quit: brb]
Dwarf has joined #cinch
Dwarf has quit [Max SendQ exceeded]
Dwarf has joined #cinch
Dwarf has quit [Max SendQ exceeded]
Dwarf has joined #cinch
Dwarf has quit [Excess Flood]
framling has quit [Quit: Lost terminal]
framling has joined #cinch
Dwarf has joined #cinch
Spami has joined #cinch
jonahR has quit [Quit: jonahR]
space has quit [Read error: Connection reset by peer]
space has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #cinch
Spami has joined #cinch
v0n has quit [Read error: Operation timed out]
v0n has joined #cinch
jonahR has joined #cinch
jonahR has quit [Client Quit]
postmodern has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
Zyzz_ has joined #cinch
<Zyzz_> is there a way to start cinch so that it doesn't take STDIN/STDOUT and prevent the main process from continuing?
<Zyzz_> so that i could start the bot inside the context of a larger app
<dominikh> Zyzz_: the two things are unrelated. and cinch really doesn't care about stdin. it's preventing the "main process from continuing" because it needs to run a loop to process events. but you can run a cinch bot in its own thread
<Zyzz_> yeah i kind of figured
<Zyzz_> was just curious if there was a way i could make this easier on myself
<dominikh> running it in a thread is fairly straightforward ;)
<Donovan> Zyzz_: that's what I'm doing with https://github.com/dyoung522/cinchbot
<Donovan> look in cinchbot.rb for an example
<Zyzz_> will do
<Zyzz_> alright
<Zyzz_> dominikh: you're right, that was simple
<Zyzz_> lol
<Donovan> =)
rickmasta has quit [Quit: Leaving...]
<Zyzz_> another noob question
<Zyzz_> how can i trigger a cinch bot instance to send a message to a channel
<Zyzz_> without binding an event handler
<dominikh> your_bot.Channel("#foo").send("your message") is one way
<dominikh> your_bot.channel_list.find("#foo").send("another message") is another way
<dominikh> (from memory)
<Zyzz_> cool
<Zyzz_> thanks
<Zyzz_> i'm trying to rig up some performance tracking gem for rails called 'bullet'
<Donovan> also m.channel.send("message")
<Zyzz_> to also notify through IRC
<dominikh> Donovan: he won't have an m ;)
<Zyzz_> felt like Cinch was an appropriate bot framework to use
<Donovan> ah, right.
<dominikh> Zyzz_: you can generally use all of Cinch as long as you have a reference to a bot. using handlers or plugins is optional :)
<Zyzz_> that's good to hear
<dominikh> you *could*, however, have a plugin that reacts to an event like :some_performance_thingy
<dominikh> you can invent your own events
<dominikh> and then just invoke that event and pass in a payload
<dominikh> depends if you prefer an event-based approach or just want to use the API directly
<Zyzz_> well, i must say, cinch is pretty nice
<dominikh> :)
<Zyzz_> here's another super noob question
<Zyzz_> in the body of the configure block
<Zyzz_> instance variables refer to instance variables of the new cinch bot instance
<Zyzz_> but i'm trying to pass parameters in there
<Zyzz_> not sure how to do that
<dominikh> easiest would be not to use the configure block. that's just an instance_eval'd block that yields bot.config
<Zyzz_> oh i see
<Zyzz_> cool
<dominikh> so you can just set stuff on bot.config instead of c and drop the block alltogether
<Zyzz_> alright that's cool
<Zyzz_> this thing should be almost done then
<Zyzz_> at least as a proof of concept
<dominikh> :)
<dominikh> (the bot.config stuff obviously outside of the Bot.new block as well. bot = Cinch::Bot.new; bot.config.server = "...")
<dominikh> you're progressively walking away from the DSL nature and just using the bare APIs
<Zyzz_> yeah
<Zyzz_> is there any algorithm for nick contention
<Zyzz_> like if nicks collide
<dominikh> cinch adds _ to your nick until it stops colliding. you can also specify alternate nicks to try first
v0n has quit [Ping timeout: 246 seconds]
rickmasta has joined #cinch
v0n has joined #cinch
rickmasta has quit [Quit: Leaving...]
rickmasta has joined #cinch
rickmasta has quit [Quit: Leaving...]
rickmasta has joined #cinch
jonahR has joined #cinch
v0n has quit [Ping timeout: 264 seconds]
Trenal has joined #cinch