dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.3.1 | You're being logged at https://irclog.whitequark.org/cinch/
Azure has joined #cinch
Azure|dc has quit [Ping timeout: 244 seconds]
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure has joined #cinch
<Johne> awesome, I'm planning on developing my own.
Liothen has quit [*.net *.split]
Gizmokid2005 has quit [*.net *.split]
bazzy has quit [*.net *.split]
chobbit has quit [*.net *.split]
dominikh has quit [*.net *.split]
thrrwfls has quit [*.net *.split]
Namaste_ has quit [*.net *.split]
greenbigfrog has quit [*.net *.split]
jesser has quit [*.net *.split]
<Johne> how do I include this as a plugin, with everything else being a gem, I'm not clear on how to include this http://pastebin.com/kh3EHZBi
chobbit has joined #cinch
dominikh has joined #cinch
bazzy has joined #cinch
Gizmokid2005 has joined #cinch
<Johne> i know the script isnt even close to complete but I'd like to test it
greenbigfrog has joined #cinch
Liothen has joined #cinch
thrrwfls has joined #cinch
Namaste_ has joined #cinch
lemtzas has quit []
jesser has joined #cinch
<leftylink> Johne: ah, so, the question would be: given that you have that plugin, how to make a bot that uses that plugin? is https://github.com/cinchrb/cinch/blob/master/README.md the section under "Want to see the same Hello, World application in plugin form? Sure you do!" a sufficient example?
<Johne> ok i see that, but how would you hook in that class?
<leftylink> Johne: which class? the class of the plugin? the same way you refer to any other class. in the example you gave it would be Cinch::Plugins::NHLScores, it seems.
<leftylink> sorry if I misunderstood what you meant by hook in, English is not my first language
<Johne> ok im not asking the right thing
<Johne> like where do i store the file so that cinch knows it exists?
<leftylink> cinch isn't responsible for that, though? That's just a matter of using ruby's require. it seems that some reasonable options would be to use require_relative and give a relative path from the bot file to the plugin file, or put the plugin in a gem and have the bot file require the gem
<leftylink> cinch doesn't automatically do any loading of files - the classes visible from the bot file are what's in the bot file, what's required from the bot file, whatever other normal rules there are for visibility in ruby (I don't have a precise definition of that)
<Johne> i just started with ruby so i' sure i'm missing something fundamental
<leftylink> it seems it would be a good resource to read how to require other files in ruby. there are probably many places that explain it better than I could
lemtzas has joined #cinch
<Johne> i think im getting closer
Azure|dc has joined #cinch
Azure has quit [Ping timeout: 265 seconds]