dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.3.1
kith has joined #cinch
postmodern has quit [Quit: Leaving]
Windir has quit [Remote host closed the connection]
sw_ has joined #cinch
<sw_>
how can I start a bot but suppress any output?
<sw_>
there doesn't seem to be a :none log level
<dominikh>
bot.loggers.clear
<sw_>
bot.loggers.clear
<sw_>
bot.start
<sw_>
do I use it like that?
<sw_>
because I still get output
<dominikh>
works fine for me.
<sw_>
root@localhost:~# vi bot.rb
<sw_>
root@localhost:~# cat bot.rb | grep loggers
<sw_>
bot.loggers.clear
<sw_>
root@localhost:~# ruby bot.rb
<sw_>
[2016/01/12 12:30:29.180] !! [on handler] Registering handler with pattern `#<Cinch::Pattern:0x00000002e93ae8 @prefix=nil, @pattern=//, @suffix=nil>`, reacting on `266`
<sw_>
[2016/01/12 12:30:29.267] !! [on handler] Registering handler with pattern `#<Cinch::Pattern:0x00000002e15990 @prefix=nil, @pattern=//, @suffix=nil>`, reacting on `266`
<sw_>
[2016/01/12 12:30:29.609] !! [on handler] Registering handler with pattern `#<Cinch::Pattern:0x00000002d0a6b8 @prefix=nil, @pattern=//, @suffix=nil>`, reacting on `266`
<dominikh>
oh yeah, that issue. *shrug* then you'll need something like http://sprunge.us/KGcQ
<sw_>
like what? I don't see what you've done :)
<sw_>
just move the clear to the top?
<dominikh>
yes.
<sw_>
ok thanks,
<sw_>
how do you send a command using the bot? I tried .message and .reply, but, I want to do a /list and process it :p
<sw_>
I tried raw too which didn't work :/
<dominikh>
bot.irc.send("LIST #spam")
<dominikh>
and install the appropriate handlers to deal with the replies
<sw_>
thanks, I take it I need to listen on raw numbers then, since there doesn't seem to be built in handlers for start/end of list and list entries?
<dominikh>
correct
<sw_>
dominikh: if I'm going to be listening for a ton of raw numerics, is there a best way to do it? at the moment I just have tons of these on : blocks -> http://pastebin.com/9WVCxYE8
<sw_>
is there a better way to do it, or not :p
<dominikh>
in general you should be using the class-based plugin API to contain the functionality in an OO way. but apart from that, no. if your handlers each do different things, have one per numeric. if they all do the same thing, use on :catchall and check if the numeric is included in a list
Zackio has quit [Quit: C-x C-c]
Zackio has joined #cinch
Zackio has quit [Client Quit]
Zackio has joined #cinch
Zackio has quit [Remote host closed the connection]
Guest6725 has joined #cinch
Guest6725 has quit [Quit: Bæ provides this ZNC for me <3]
Zacketh has joined #cinch
<sw_>
dominikh: is an event triggered for when cinch shows the 'Detected IRCd ->' message
<dominikh>
no.
<dominikh>
you can use the :connected event though. by the time that fires, IRCd detection is done