dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.5
oddmunds has quit [Ping timeout: 240 seconds]
oddmunds has joined #cinch
<resure> It fails with "A synced attribute ('authname' for #<User nick="...">) has not been available for ... seconds, still waiting"
<dominikh> what IRC network?
<nickrw> presumably that feature depends on the IRCd supporting /whois actually returning the name
<resure> dominikh, nickrw freenode
<resure> But it doesnt work only on bot itself
<resure> Other names are ok
<nickrw> I guess you could skip checking authname if the user == bot
<nickrw> not sure why Bot#authname wouldn't work though, since Bot is a subclass of User
<nickrw> resure: maybe link to reproduction code? I just tried m.reply bot.authname in a test plugin and it worked for me
aytch has left #cinch ["Leaving..."]
<Cinchy> [gist] plugins.rb (at gist.github.com, resure on 2013-07-12 01:51)
kx has quit []
jonahR has quit [Ping timeout: 240 seconds]
txdv has joined #cinch
txdv_ has quit [Read error: Connection reset by peer]
<dominikh> there used to be a bug regarding that, but it should be fixed in the current version
jonahR has joined #cinch
jonahR has quit [Quit: jonahR]
bhaak has quit [Ping timeout: 246 seconds]
bhaak has joined #cinch
space has quit [Read error: Connection reset by peer]
v0n has joined #cinch
v0n has quit [Ping timeout: 260 seconds]
resure has quit [Ping timeout: 264 seconds]
Guest31626 has joined #cinch
<nickrw> worth mentioning that freenode's IRCd will rate limit the whois command
<nickrw> oh, he's gone
Spami has joined #cinch
<dominikh> yeah, but we handle that and retry
<dominikh> because freenode actually tells us, indirectly, that it was throttled
Guest31626 has quit [Ping timeout: 260 seconds]
resure has joined #cinch
resure is now known as Guest39167
Guest39167 has quit [Ping timeout: 276 seconds]
resure_ has joined #cinch
resure_ is now known as Guest77743
Guest77743 has quit [Ping timeout: 276 seconds]
resure- has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
resure- is now known as resure
resure is now known as Guest13287
Spami has joined #cinch
Guest13287 has quit [Changing host]
Guest13287 has joined #cinch
Guest13287 is now known as resure
Spami has quit [Quit: This computer has gone to sleep]
resure has left #cinch [#cinch]
postmodern has quit [Remote host closed the connection]
v0n has joined #cinch
bhaak has quit [Ping timeout: 240 seconds]
bhaak has joined #cinch
space has joined #cinch
space has quit [Remote host closed the connection]
<Dwarf> How do I make m.reply send a notice instead?
<dominikh> Dwarf: m.target.notice("your reply")
<Dwarf> Alright thanks
Rennex_ has quit [Remote host closed the connection]
Rennex has joined #cinch
Donovan has joined #cinch
<Donovan> any examples of cinch running here?
* dominikh points at Cinchy
<dominikh> random link for testing: https://gist.github.com/resure/5980840
<Cinchy> [gist] plugins.rb (at gist.github.com, resure on 2013-07-12 01:51)
<dominikh> !memo Donovan A memo for Donovan
<Cinchy> dominikh: Memo recorded for Donovan.
<dominikh> and whatever else it can do…
<Donovan> cool
<Cinchy> Donovan: [17s ago] <dominikh> A memo for Donovan
<dominikh> the code for that would be at https://github.com/dominikh/Mathetes/tree/cinch_rewrite
<Donovan> nice
<Donovan> is there a central repository for plugins, or just search github (basically)?
<Donovan> what I mean is, is there a list somewhere
<Donovan> I have my own ideas, but don't want to reinvent the wheel
<dominikh> there used to be, but it's been offline for a while. http://rubygems.org/search?query=cinch- works reasonably well for discovering plugins though
<Donovan> okay, fair enough
<Donovan> thanks for the help... I'm sure I'll have more questions once I dive into this rabbit hole
<dominikh> hehe
space has joined #cinch
jonahR has joined #cinch
postmodern has joined #cinch
newton has joined #cinch
<newton> are there any good examples anywhere of a cinch plugin running a loop and reporting data to a channel on X basis?
v0n has quit [Ping timeout: 240 seconds]
jonahR has quit [Quit: jonahR]
<dominikh> newton: depends what you're after. fixed intervals (every X seconds), or "when event X occurs"?
<newton> every X seconds preferable, but the other could work too
<newton> I want to do similar to scraping a RSS feed and updating a channel on a regular basis on the feed
<dominikh> newton: well, for every X seconds, there's timers (c.f. examples/plugins/timer.rb)
<newton> timer looks good - thanks
space has quit [Read error: Connection reset by peer]
txdv_ has joined #cinch
txdv has quit [Read error: Connection reset by peer]
resure has joined #cinch
<resure> Hi. I wrote bot to log channel messages to postgres, but I don't know how to use it to write it's own messages. What part I should change to do that?
<Cinchy> [gist] gist:5f3085ede625e20f01a9 (at gist.github.com, resure on 2013-07-12 22:11)
<waxjar> listen to a send event? i dont know if there is one though
<dominikh> no, there isn't.
<dominikh> well, there is if you used the actual logger framework instead of a plugin with listen_to
<dominikh> but using the logger framework has other issues for structured logging since it's mostly just raw text
<dominikh> so no, there's really no way to get to messages the bot is sending, unless you monkeypatch some method
<resure> That's sad. I need to keep another bot, just for logging.
<waxjar> you can put your bot behind znc and use its logging module?