dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.1.0
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Ping timeout: 264 seconds]
FIQ has quit [Max SendQ exceeded]
Guest32461 has joined #cinch
Guest32461 has quit [Changing host]
Guest32461 has joined #cinch
Guest32461 is now known as FIQ
djbkd has joined #cinch
djbkd has quit [Quit: My people need me...]
Rylee has quit [Max SendQ exceeded]
Rylee has joined #cinch
xeviox|afk has joined #cinch
iamayam has quit [Ping timeout: 245 seconds]
xeviox has quit [Ping timeout: 240 seconds]
xeviox|afk is now known as xeviox
Rylee has quit [Ping timeout: 245 seconds]
iamayam has joined #cinch
Rylee has joined #cinch
kith_ has joined #cinch
kith has quit [Ping timeout: 250 seconds]
kith_ is now known as kith
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
CM-Punk has joined #cinch
djbkd has quit [Quit: My people need me...]
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
postmodern has joined #cinch
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
_djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
<CM-Punk>
Hi there. So if I have a plugin_name set in every plugin, and then within another plugin I want to call on an array of all the plugin_names how would I go about doing that?
_djbkd has quit [Remote host closed the connection]
<leftylink>
hmm, I have a line in my code that reads commands = m.bot.config.plugins.plugins.map { |p| defined?(p::COMMANDS) ? p::COMMANDS : [] }
<leftylink>
possibly relevant, butI dunno, you may have to adapt
djbkd has joined #cinch
<onewheelskyward>
yeah it's not pretty.
<dominikh>
on an unrelated note, anyone want to take Cinch, fix its various API flaws and design Cinch 3.0 under my supervision? :P
<onewheelskyward>
I'm using bot.plugins[].
<onewheelskyward>
dominikh That's tempting. What kind of api flaws are you speaking of?
<dominikh>
if you can't see em, you're not the right man for the job :P – on a more serious note, there's too much coupling. messages take part in the dispatching of messages, the parser is useless without the actual connection, etc
<onewheelskyward>
haha
<dominikh>
and plugins internally just build on the "on" primitive and lots of workarounds that make some things hard
<dominikh>
Cinch is an untestable mess (unit test wise). trying to write those tests reveals many of the internal flaws
<onewheelskyward>
It's funny how that works. I've been through that myself a few times.
<dominikh>
not to mention there are too many ways of using a method ("oh, we'll guess what you meant, just pass any of these 5 types")
<onewheelskyward>
Honestly, I wouldn't have the time to take it on anyhow. But I wouldn't mind contributing.
<dominikh>
personally I don't work on Cinch anymore besides very light maintenance
<dominikh>
most people don't seem to see the many flaws, anyway, so there's no incentive for me to fix them, anyway. and I don't really do ruby anymore, either
<dominikh>
problem is, it would require a rewrite from the ground up. would be easier than fixing it incrementally
<onewheelskyward>
I imagine a re-envisioning of the plugin system would be one of the bigger elements to take on.
<onewheelskyward>
Still loving Go?
<dominikh>
oh I don't mind the plugin system itself (just some of the naming choices. c.plugins.plugins still annoys me)
<dominikh>
yes, still loving Go
<dominikh>
not its community, but the language's nice :P
<onewheelskyward>
It's young yet.
<dominikh>
oh, the community was fine two years ago
<dominikh>
it's not so fine anymore with everyone jumping on it and complaining that it doesn't look like $language_we_already_have :)
<onewheelskyward>
Ah, roger
<dominikh>
I liked the initial community because it was actually invested in the language, understood where it came from and generally had a good understanding of systems programming, unix, etc
<dominikh>
now it's nodejs folks thinking Go is the next thing that'll earn them money
<CM-Punk>
Yeah, I'm still having an issue with this onewheelskyward, I have set :plugin_name in each of my plugins on my bot. I need to use another plugin, help.rb to call on an array of each entry
<onewheelskyward>
You really need to embrace the underpinnings to understand and be successful with a language. Otherwise you're just wasting your time.
<onewheelskyward>
CM-Punk isn't there a built-in help helper already?
<dominikh>
(there *is* a built-in !help <plugin_name>)
<dominikh>
one of those choices I regret, btw
<dominikh>
should not have been there
<onewheelskyward>
Too implementation-detail?
<leftylink>
it was not sufficient for me; had to do my own. that's actually what my line of code was for
<dominikh>
onewheelskyward: 1) it's half-arsed. most people implemented their own 2) Cinch is an IRC library/framework, not a full-fledged bot framework. "help" being there is weird, we don't have anything else of that kind
djbkd has quit [Remote host closed the connection]