ChanServ changed the topic of #cinch to: The IRC Framework | http://groups.google.com/group/cinch-ruby/ | Latest version: Cinch 2.0.4 – Change log at http://bit.ly/14Q4s6Z – Migration guide at http://bit.ly/GO4qkW | This channel is being publicly logged at http://irclog.whitequark.org/cinch/
v0n has joined #cinch
v0n has quit [Ping timeout: 248 seconds]
postmodern has joined #cinch
v0n has joined #cinch
v0n has quit [Ping timeout: 276 seconds]
sleetdrop has joined #cinch
sleetdrop has quit [Quit: Computer has gone to sleep.]
sleetdrop has joined #cinch
jonahR has joined #cinch
<dominikh> nickrw: only if searching through github
<dominikh> nothing official
waxjar has quit [Ping timeout: 264 seconds]
waxjar has joined #cinch
postmodern has quit [Quit: Leaving]
jonahR has quit [Quit: jonahR]
sleetdrop has quit [Ping timeout: 248 seconds]
<oddmunds> i decided to do the long postponed bot cleanup
<dominikh> how did it go
<oddmunds> haven't started yet :)
<dominikh> haha
<dominikh> and already procrastinating
<oddmunds> yeah, coming in here talking about it instead of doing it
<dominikh> yea
<oddmunds> step one is to start from scratch with a new git repo, new bot.rb
<oddmunds> and move all the plugins i made (or at least want to keep) to it's own gem
<oddmunds> is there any guidelines to making cinch plugins?
<oddmunds> most of mine have hardcoded stuff in them, like which keywords trigger them and stuff
<dominikh> you can look at official plugins, pretty much: https://github.com/cinchrb
<dominikh> well, hardcoded keywords etc is fine
<oddmunds> which i guess would make more sense to be a part of the bot config
<dominikh> the only real guidelines are concering file layout and namespace
<dominikh> you can't make keywords configurable, anyway
<oddmunds> you can't?
<dominikh> match(...) etc is evaluated on a class level, there's no bot config to read fro
<dominikh> well you could if you used lambdas for every match. which is ugly, and slower
<waxjar> you could use a class instance variable to configure stuff like that
<oddmunds> i've got some stuff i really want to do, but not sure how to do it
<dominikh> how do you set the class variable before the match is evaluated?
<oddmunds> like, i'd like to be able to configure plugins individually for different channels
<waxjar> Plugin.setting = blabla before you set up the bot. it isnt very pretty
<dominikh> waxjar: the moment I require the file with your plugin in it, the match(...) will be executed.
<dominikh> waxjar: setting any variable from that file I required afterwards isn't doing to do anything
<waxjar> hmm, i see
<dominikh> oddmunds: there's plugin configuration (basically a hash)
<waxjar> cleanest solution would be something that matches on everything then and do the checks manually i guess
<dominikh> or to just use a fixed command, really
<dominikh> I've never heard anyone express the need to change a command. and if they do, they can write a plugin for that
<oddmunds> yeah, i guess so
<oddmunds> i hang around in channels with different languages
<dominikh> define it in multiple languages ;)
<oddmunds> well the keywords would be different too
<dominikh> define multiple commands that transform and relay to one central implementation
<oddmunds> yeah, i guess so
<dominikh> or teach people to speak english :P
<oddmunds> i'm probably overthinking it
<dominikh> nobody wants a norwegian irc bot!
<oddmunds> hah
<oddmunds> yeah, i do
<dominikh> hehe
<waxjar> ah, by keywords you mean the actual commands?
<oddmunds> yeah
<oddmunds> did i screw up the terminology?
<waxjar> nah, i just assumed you meant some phrases in a line or something.
<oddmunds> ah, i guess the content can be i18ned like other stuff
<dominikh> sure, that's no issue
<oddmunds> I'll start with the easy ones
<dominikh> is the old bot still on 1.x?
<oddmunds> heh
<oddmunds> no
<dominikh> ah ok
<oddmunds> Gemfile.lock tells me 2.0.3
<dominikh> well, less work for you then
sleetdrop has joined #cinch
jonahR has joined #cinch
jonahR has quit [Quit: jonahR]
sleetdrop has quit [Quit: Computer has gone to sleep.]
postmodern has joined #cinch
oddmunds has quit [Ping timeout: 246 seconds]
Cinchy has quit [*.net *.split]
oddmunds has joined #cinch
Cinchy has joined #cinch
sindork_ has quit [Ping timeout: 320 seconds]
sindork has joined #cinch