dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.1.0
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has quit [Quit: My people need me...]
nickrw has quit [Ping timeout: 250 seconds]
nickrw has joined #cinch
nickrw has quit [Ping timeout: 250 seconds]
nickrw has joined #cinch
nickrw has quit [Ping timeout: 240 seconds]
nickrw has joined #cinch
britneywright has joined #cinch
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Liothen has quit [Remote host closed the connection]
Liothen has joined #cinch
postmodern has quit [Quit: Leaving]
frog|OFF is now known as green-big-frog
<green-big-frog> good morning
<green-big-frog> me again: i wrote everything in the paste: http://hastebin.com/mocuhokiho.xml
green-big-frog is now known as frog|OFF
postmodern has joined #cinch
Azure has quit [Ping timeout: 255 seconds]
<leftylink> frog|OFF: well, it looks like the answer is "s". since the answer is one letter, if you substitute every letter with _, you get one underscore "_"
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
Shazaum has joined #cinch
Shazaum has quit [Quit: This computer has gone to sleep]
Shazaum has joined #cinch
Shazaum has quit [Remote host closed the connection]
nickrw has quit [Ping timeout: 245 seconds]
nickrw has joined #cinch
postmodern has quit [Quit: Leaving]
Shazaum has joined #cinch
Azure has joined #cinch
Azure has quit [Read error: Connection reset by peer]
sarkyniin has joined #cinch
sarkyniin has quit [Ping timeout: 245 seconds]
sarkyniin has joined #cinch
britneywright has joined #cinch
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
britneywright has joined #cinch
britneywright has quit [Client Quit]
britneywright has joined #cinch
leftylink has quit [Quit: me too]
leftylink has joined #cinch
Azure has joined #cinch
Crazy_Atheist has joined #cinch
sarkyniin has quit [Ping timeout: 244 seconds]
sarkyniin has joined #cinch
frog|OFF is now known as green-big-frog
<green-big-frog> good afternoon
<green-big-frog> good afternoon
Dunke has quit [Ping timeout: 258 seconds]
green-big-frog is now known as buffalowave
shazaum_ has joined #cinch
Dunke has joined #cinch
Shazaum has quit [Ping timeout: 250 seconds]
britneywright has quit [Read error: Connection reset by peer]
britneywright has joined #cinch
<buffalowave> me again:
<buffalowave> where can i find docs about how to configure my .rb when i want to launch multiple plugins with diffrent documentations?
<buffalowave> or could someone fix my code? http://hastebin.com/isuhagunux.coffee
<buffalowave> i dont know what i am doing wrong...
buffalowave is now known as green-big-frog
<waxjar> green-big-frog: i think you'll have to dup the class, since cinch uses a hash for configuration
<green-big-frog> ???
<green-big-frog> now in easier english please ;)
<waxjar> ah, i see. i thought you wanted to use the same plugin twice
<waxjar> line 21, you should get rid of the c.plugins.options[], just use the class name like you do on lin 16
<green-big-frog> could you edit it? im not realy getting, what youre meaning... im sorry that i am not a monther tongue speaker/writer
<green-big-frog> its control+d or the pen in the upper right corner
<green-big-frog> waxjar: can you please edit it?
<waxjar> replace c.plugins.options[classname] = with classname =>
<green-big-frog> like this?
<green-big-frog> Cinch::Plugins::Identify] => {
<green-big-frog> :username => "my_username",
<green-big-frog> :password => "my secret password",
<green-big-frog> :type => :nickserv,
<green-big-frog> }
<green-big-frog> *-]
<waxjar> yes, also place a , after the } on line 19 ;)
<waxjar> and then, time to learn Ruby ;D
<green-big-frog> ok ^^
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<green-big-frog> what is the best place/way to learn ruby?
britneywright has joined #cinch
lostcat is now known as foundcat
green-big-frog is now known as frog|OFF
shazaum_ has quit [Quit: This computer has gone to sleep]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
britneywright has joined #cinch
apt-get_ has joined #cinch
sarkyniin has quit [Ping timeout: 265 seconds]
postmodern has joined #cinch
<Dwarf> Heya, is there a way to match raws in plugins?
<Dwarf> Oh I can just hook :error nvm
Shazaum has joined #cinch
<Dwarf> listen_to :error, method: :error_handler
<Dwarf> def error_handler(m)
<Dwarf> Channel(::DEBUG_CHAN).send "#{Format(:bold, '[ERROR]')} (#{m.error}) #{m.message} #{Format(:bold, 'RAW: ')} #{m.raw}"
<Dwarf> end
<Dwarf> Should work, no?
<Dwarf> Only one way to find out.
<dominikh> probably, yes.
<Dwarf> Nice
<Dwarf> I was googling some ruby stuff and stumbled upon your filesize gem
<Dwarf> Pleasantly surprised
<dominikh> depressingly few people use it :P
<Dwarf> It works for me!
<Dwarf> I just wish I could add functions on the fly
<Dwarf> But that's about cinch
<Dwarf> I can add methods, no problem. But adding the match part is harder
<dominikh> it's quite easily doable
<Dwarf> I have a !debug command that evals ruby code
<Dwarf> Cause I'm a lazy bastard
<Dwarf> Also; ever since I added join on invite the amount of channels my bot is in has grown exponentially
<Dwarf> It's on 46 channels now which is quite a lot
<Dwarf> It takes a few minutes to sync all the WHO replies and whatnot
<dominikh> heh
<dominikh> Dwarf: http://sprunge.us/OKCP
<dominikh> (there's also a more elaborate way of doing it, if you need more control over the match's behaviour)
<Dwarf> Hm, that looks nice
<Dwarf> Does that take regex as the trigger?
<dominikh> it's the `on` DSL, so strings or regexps or lambdas
<Dwarf> Awesome
<dominikh> with the same semantics as always (strings have implied ^$ anchors, etc
<Dwarf> <~Dwarf> !debug def this_func(m) m.reply "Yolo" end
<Dwarf> That worked
<Dwarf> Altho, the debug function runs in a class, so the method would get created in that class
<dominikh> can always eval in a different context.
<Dwarf> True
<Dwarf> That's okay tho it's the main "put crap functions in here" class
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Dwarf> So I tried <~Dwarf> !debug @bot.on(:message, /swag/, &Kernel.method(:this_func)), which gives me "undefined method `this_func' for class `Module'", so I tried @bot.on(:message, /swag/, &Kernel.method(::URLinfo::this_func)) which gives me "undefined method `this_func' for URLinfo:Class". I'm not sure I'm understanding this correctly
<Dwarf> But I'm getting closer that's for sure
<dominikh> you don't want Kernel.method, you'll want ThatClass.method
<dominikh> (or maybe just `method`, not sure if that works, my Ruby is rust)
<dominikh> *rusty
<Dwarf> Your ruby is rusty? How'd that happen
<Dwarf> Of all people
<dominikh> oh, probably needs the instance, so… self?
<dominikh> how'd that happen? I've stopped writing code in Ruby ;)
<Dwarf> self.this_func then
<Dwarf> Oh? What are you doing now then?
<Dwarf> Please don't say python
<dominikh> &self.method(:this_func), and yeah, and that point you can drop the `self`
<dominikh> I'm programming primarily in Go nowadays
<Dwarf> That's so hipster.
<dominikh> careful
<Dwarf> ;)
<Dwarf> You'll have to admit that go is one of the "hipster" language along with rust or swift or scala or whatever it is all the cool kids use nowadays
<Dwarf> Awesome, &self.method() worked
<dominikh> I'll admit that there are idiots who use Go because they think it's the new hip thing. They're also the people who don't understand it.
<dominikh> and complain that it doesn't have feature X of language Y :)
<Dwarf> So what are you creating in it?
<Dwarf> I've never really dabbled with it
<dominikh> personally? a number of things. my window manager is written in it, my IRC bot is, a lot of utilities are; and I use it for a work project
<Dwarf> Nice
<Dwarf> I wish irssi did ruby scripts
<Dwarf> Perl is such a bitch
<dominikh> weechat does ;)
<Dwarf> I always end up segfaulting irssi
<Dwarf> Welllll
<dominikh> but you can equally segfault weechat if your script does bad things.
apt-get_ has quit [Remote host closed the connection]
<Dwarf> True. Well, time to get my well needed beauty sleep.
Shazaum has quit [Quit: This computer has gone to sleep]
<Dwarf> Have a great evening
Shazaum has joined #cinch
<dominikh> take care.
jesser_ has quit [Ping timeout: 258 seconds]
jesser_ has joined #cinch
djbkd has joined #cinch
iamayam has quit [Ping timeout: 264 seconds]
iamayam has joined #cinch
Shazaum has quit [Quit: This computer has gone to sleep]
britneywright has joined #cinch
Shazaum has joined #cinch
djbkd has quit [Remote host closed the connection]