dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.1.0
<ahh> is there a link to the api page
<ahh> thanks i'll take a look through it. i'm still getting some errors trying to keep it running and sending couple messages
<dominikh> what errors?
<ahh> well it just stops after the t.join. i think i need to understand this a bit more :) most of the examples are event driven didn't see much in being able to make method calls after bot.start
<ahh> just ruby newbie :)
<dominikh> that's the point of t.join. that's Thread#join. it waits for the thread to finish
<ahh> and bot.start ?
<ahh> initializes and starts the method
<dominikh> tells the bot to connect, which runs its read/write loop
<dominikh> which blocks. hence its own thread around it
<ahh> ah
<ahh> i see
<ahh> so how would you not block
<dominikh> you sound confused. Bot#start will always block. if you want to do stuff after the Bot#start, like in my example, you put it in a thread
<ahh> i must be yeah
<ahh> maybe not familiar with threads enough
<ahh> guess i'll keep trying it. I ahve more rails/fob work to do for now. thanks for the help
<dominikh> no problem, and good luck
ahh has left #cinch [#cinch]
thrillagorilla has joined #cinch
Azure has quit [Quit: My MBP went to sleep.]
Azure has joined #cinch
Dwarf has quit [Quit: Oops I quit]
placer14 has joined #cinch
<placer14> Hiyas. curious if anyone has any suggestions on a good pattern to get external signals triggering cinch actions?
<placer14> (signals from outside of IRC, but still on the same system as the one running the bot)
<dominikh> placer14: depends how external. different process?
<placer14> yes, outside process
<dominikh> a fifo or a unix socket is usually a decent choice
<placer14> but filesystem, pipes, sockets are all reasonable solutions... pipe is reasonable as I only need one-way comm
<dominikh> I suppose you're more interested in the triggering bit than the transmitting data bit then I guess
<placer14> Yeah...
<placer14> I'm thinking about a thread listening to a file pointer.
<dominikh> given a Bot instance called bot, you can do bot.handlers.dispatch(...) to dispatch any sort of event you wish
<placer14> And have it pipe that to cinch.
<placer14> What if I don't have the bot instance handy in the process?
<dominikh> surely the process that is reading from the fifo has the bot handy.
<placer14> I suppose the bootstrap script for the bot would also bootstrap listening to the fifo...and would have access to the bot instance... it just seemed heavy
<placer14> Wondered if there was a more direct route that I was overlooking.
<dominikh> I'm not sure what you're asking for. entity A writes to the fifo, entity B reads from the fifo. what use is it then, if entity C is the bot? how would C know anything?
<dominikh> bot = Cinch::Bot.new {...}; Thread { for each line on fifo { bot.handlers.dispatch(...) }; bot.start
<dominikh> well, one more } before the ;
<placer14> yeah... perhaps I'm overthinking it.
<placer14> Thanks :)
<placer14> PS: I've been playing with cinch for 10 minutes and it's stupid-easy/fun to use.
<placer14> So thanks! :)
<dominikh> glad to hear that :)
Dwarf has joined #cinch
<placer14> Bonus points for making yourself available on IRC.
<dominikh> well, it is an IRC framework after all :P
* placer14 's mind boggles
<dominikh> you're lucky I screwed up my sleep though. timezone wise it's 6am
* placer14 tries not to confuse my luck for your dedication
<dominikh> then don't mistake my sleep for lack of dedication. good night.
CM-Punk has quit [Ping timeout: 258 seconds]
CM-Punk has joined #cinch
literal has quit [Quit: Lost terminal]
literal has joined #cinch
kludge` has quit [Ping timeout: 252 seconds]
kludge` has joined #cinch
kludge` has quit [Changing host]
kludge` has joined #cinch
placer14 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thrillagorilla has quit [Ping timeout: 272 seconds]
unlike has joined #cinch
unlike is now known as Guest10926
thews has quit [*.net *.split]
deb has quit [*.net *.split]
Guest10926 is now known as deb
deb is now known as Guest55731
thews has joined #cinch
Dwarf has quit [Ping timeout: 245 seconds]
<Rylee> Is there any quick way to send a /kill from inch?
Dwarf has joined #cinch
Dwarf has quit [Client Quit]
xeviox|afk is now known as xeviox
xeviox is now known as xeviox|afk
Rickmasta has quit [Remote host closed the connection]
Rickmasta has joined #cinch
dominikh has quit [Quit: WeeChat 0.4.3]
dominikh has joined #cinch
Azure has quit [Quit: My MBP went to sleep.]
Azure has joined #cinch
Azure has quit [Client Quit]
Azure has joined #cinch
Azure has quit [Client Quit]
Azure has joined #cinch
txdv has quit [Ping timeout: 252 seconds]
txdv has joined #cinch