<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?
<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]