julian-delphiki has quit [Ping timeout: 255 seconds]
julian-delphiki has joined #cinch
davidboy has quit [*.net *.split]
Rennex has quit [*.net *.split]
davidboy has joined #cinch
Rennex has joined #cinch
julian-delphiki has quit [Quit: Computer has gone to sleep.]
Lemtzas has quit [Quit: No Ping reply in 180 seconds.]
Lemtzas has joined #cinch
waxjar has quit [Ping timeout: 245 seconds]
waxjar has joined #cinch
waxjar has quit [Ping timeout: 245 seconds]
waxjar has joined #cinch
Lemtzas has quit [Quit: No Ping reply in 180 seconds.]
Lemtzas has joined #cinch
caitlinface is now known as CaitlintheBlue
CaitlintheBlue is now known as caitlinface
v0n has joined #cinch
v0n has quit [Read error: Operation timed out]
postmodern has quit [Quit: Leaving]
jhaals has joined #cinch
jhaals has quit [Ping timeout: 245 seconds]
jhaals has joined #cinch
jhaals has quit [Ping timeout: 252 seconds]
jhaals has joined #cinch
jhaals has quit []
jhaals has joined #cinch
v0n has joined #cinch
v0n has quit [Ping timeout: 260 seconds]
v0n has joined #cinch
julian-delphiki has joined #cinch
qb has quit [Read error: Connection reset by peer]
qb has joined #cinch
jhaals has quit []
jhaals has joined #cinch
jhaals has quit [Client Quit]
jhaals has joined #cinch
<maetthew>
Azure: Sorry this was several days ago but I'm curious about this :)
<maetthew>
Azure [07:41:07] did create a helper/redis-based system for managing "admins" and "trusted users", which would require a require and some conditional code to use.
jhaals has quit []
solidoodlesuppor has joined #cinch
<solidoodlesuppor>
Hey guys
<solidoodlesuppor>
Trying to get a logger going in cinch. Any advice?
<maetthew>
solidoodlesuppor: I'm ruby noob but and I'm not sure what you mean about "logger". But I used the built in "Logger" that logs some stuff to a file
<solidoodlesuppor>
I can't seem to find an example of its use
<Cinchy>
[gist] Logger example (at gist.github.com, maetthew on 2013-03-08 18:02)
<maetthew>
Nothing from the Cinch console gets outputted there for me anyway (mind you this is not example is not bundled with Cinch, but it's the same result I get anyway)
<solidoodlesuppor>
Yeah, but I'm trying to log all the crud from the actual channel
<maetthew>
How are you reading it?
<maetthew>
Are you matching specific stuff?
<solidoodlesuppor>
Nope.
<solidoodlesuppor>
Just want it write down everything that happened
<maetthew>
I guess you could do a match that matches anything. And put that in the log
<maetthew>
You basically want an IRC log, with just all the messages sent to a channel?
<solidoodlesuppor>
Yup
<maetthew>
Should be able to do "match /(.+), method: :logeverything"
<maetthew>
then a method called logeverything :P
<solidoodlesuppor>
But what am I matching? The output doesn't come any one place.
<maetthew>
well you're matching anything? :p
<maetthew>
solidoodlesuppor: are you good with ruby? should i assume you're better/worse than me? :P
<solidoodlesuppor>
I'm most likely about the same
<solidoodlesuppor>
but what am I matching the regex to? Stdout?
<Cinchy>
[gist] mycinchplugin.rb (at gist.github.com, maetthew on 2013-03-08 18:31)
<maetthew>
(i haven't tried this but it should work)
<maetthew>
gah forgot message object again :p
<maetthew>
*updated*
<maetthew>
save that snippet as "mycinchplugin.rb", then require it from your main file
<maetthew>
also.. forgot :P
<maetthew>
you need to c.plugin.plugins = [MyCinchPlugin]
<maetthew>
to load the plugin
<solidoodlesuppor>
OK but how does my bot talk to the plugin? Doesn't an instance of it have to be initiated?
<maetthew>
hmm, talk to the plugin? รด_O
<maetthew>
solidoodlesuppor: I gotta head out for a moment. Will be back in an hour or so. Ask away and I'll answer to the best of my abilities when I get back :)
<solidoodlesuppor>
undefined method plugins
<solidoodlesuppor>
And that plugin wont load either
caitlinface is now known as player2
player2 is now known as caitlinface
<solidoodlesuppor>
maetthew: If your back, I made some progress, but it's still giving me weird errors. Complaining about an "info" method
<maetthew>
solidoodlesuppor: sorry took little longer than expected
<solidoodlesuppor>
if you point me toward the documentation for that match command, I could properly figure it out. That seems to be the issue - it is expecting something that it is not getting
<solidoodlesuppor>
couldn't find where it is defined in the library
<maetthew>
well the thing is, rubydoc is crap
<maetthew>
so you probably wouldn't find much there
<solidoodlesuppor>
Yeah, that's been my problem from the start of this
<maetthew>
ask dominikh what he thinks about rubydoc :P
<maetthew>
anyway, i THINK match is something in Cinch