dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.11
<CM-Punk> Alright, so if I have an array set up in check_user.rb, and that's set up as a helper, is there a way to easily have the bot send a message to every nick in that array?
davido has quit [Ping timeout: 256 seconds]
<somasonic> CM-Punk, nicks.each { |n| User(n).msg("hello") }
<somasonic> may want to flesh that out a bit
<CM-Punk> Would "n" be where I would put "check_user"?
<somasonic> i misunderstood your question, ignore me
<CM-Punk> That's the helper
<somasonic> CM-Punk, you can't access that array from outside of that method
<somasonic> you could make the users an attribute on the class
<somasonic> or define it elsewhere
<somasonic> in the script
<CM-Punk> Uhm...I do it all the time...
<CM-Punk> Like in that one
<somasonic> yeah you can call the method, but you can't get the array from within the method
<CM-Punk> Well I'd like it to be easily configurable, so it would need to be in one place, like the check_user is.
<somasonic> yes, so make a configuration module somewhere in your code that allows any part of your script to access all config variables easily
<somasonic> i.e. Config.get('nicks')
davido has joined #cinch
<CM-Punk> I am learning, but I'm not very very good yet. I don't understand how to do that somasonic.
<CM-Punk> I'm still trying to figure out turning parts of code on and off.
<CM-Punk> XD
<somasonic> CM-Punk,
<somasonic> I can show you a very basic example
<CM-Punk> Yes, that's how I learn best.
<somasonic> CM-Punk, http://pastie.org/8551033
<Cinchy> [pastie] #8551033 - Pastie (at pastie.org, on 2013-12-14 04:22)
<somasonic> CM-Punk, you can access MyConfig throughout the whole script
<somasonic> you need to place that code before you configure cinch or anything like that, not within any classes
davido has quit [Ping timeout: 252 seconds]
<somasonic> yep
<somasonic> before line 21
<somasonic> would be good
<CM-Punk> Awesome.
<CM-Punk> Thank you somasonic
davido has joined #cinch
sabfer has joined #cinch
davido has quit [Ping timeout: 252 seconds]
<CM-Punk> somasonic I named my array Configuration.dispatch, and then put this in my plugin: m.user(Configuration.dispatch).notice
<CM-Punk> I'm guessing that's not right.
<CM-Punk> Because it says it has too many arguments.
<CM-Punk> I figured it out!
<somasonic> lol
<somasonic> glad you figured it out
davido has joined #cinch
UberDragon has joined #cinch
davido has quit [Ping timeout: 256 seconds]
sabfer has quit [Remote host closed the connection]
davido has joined #cinch
davido has quit [Ping timeout: 252 seconds]
sabfer has joined #cinch
UberDragon has quit [Quit: UberDragon]
sabfer has quit [Remote host closed the connection]
davido has joined #cinch
davido has quit [Ping timeout: 256 seconds]
<CM-Punk> Is there a way for the bot to check if a user is in a channel without whoising them?
davido has joined #cinch
davido has quit [Ping timeout: 256 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 252 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 256 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 252 seconds]
<CM-Punk> somasonic are you still here?
davido has joined #cinch
davido has quit [Ping timeout: 252 seconds]
Cinchy has quit [Ping timeout: 245 seconds]
Cinchy has joined #cinch
davido has joined #cinch
davido has quit [Ping timeout: 252 seconds]
davido has joined #cinch
<catepillar> CM-Punk: Channel("#channel").users.keys.include? "username"
davido has quit [Ping timeout: 256 seconds]
<CM-Punk> Okay
<CM-Punk> Thanks
davido has joined #cinch
davido has quit [Ping timeout: 256 seconds]
davido has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
davido has quit [Ping timeout: 256 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 256 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 256 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 252 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 256 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 256 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 252 seconds]
cyrusdavid has quit [Ping timeout: 260 seconds]
cyrusdavid has joined #cinch
davido has joined #cinch
davido has quit [Ping timeout: 252 seconds]
davido has joined #cinch
cyrusdavid has quit [Ping timeout: 265 seconds]
davido has quit [Ping timeout: 252 seconds]
sabfer has joined #cinch
cyrusdavid has joined #cinch
davido has joined #cinch
davido has quit [Ping timeout: 252 seconds]
davido has joined #cinch
Azure has quit [Quit: My MBP went to sleep.]
davido has quit [Ping timeout: 252 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 256 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 256 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 256 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 256 seconds]
davido has joined #cinch
kludge` has quit [Ping timeout: 272 seconds]
kludge` has joined #cinch
davido has quit [Ping timeout: 252 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 256 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 252 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 252 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 252 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 256 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 252 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 256 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 256 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 252 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 252 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 256 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 256 seconds]
davido has joined #cinch
waxjar_ is now known as waxjar
davido has quit [Ping timeout: 252 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 252 seconds]
Azure has joined #cinch
davido has joined #cinch
davido has quit [Ping timeout: 256 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 252 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 252 seconds]
davido has joined #cinch
davido has quit [Ping timeout: 256 seconds]
davido has joined #cinch
waxjar_ has joined #cinch
waxjar has quit [Ping timeout: 240 seconds]
postmodern has quit [Ping timeout: 240 seconds]
sabfer has quit [Ping timeout: 240 seconds]
Dwarf has quit [Ping timeout: 240 seconds]
Dwarf has joined #cinch
sabfer has joined #cinch
postmodern has joined #cinch
postmodern has joined #cinch
postmodern has quit [Changing host]
Azure has quit [Quit: Textual IRC Client: www.textualapp.com]
Azure has joined #cinch
sabfer has quit []
Rennex_ has joined #cinch
somasonic has quit [Ping timeout: 250 seconds]
Rennex has quit [Ping timeout: 250 seconds]
somasonic_ has joined #cinch
somasonic_ is now known as somasonic
rikai_ is now known as rikai
rikai has quit [Changing host]
rikai has joined #cinch
Azure has quit [Quit: My MBP went to sleep.]
Azure has joined #cinch
Azure has quit [Quit: Textual IRC Client: www.textualapp.com]
Azure has joined #cinch
CM-Punk has quit [Quit: ZNC - http://znc.in]
CM-Punk has joined #cinch
CM-Punk has quit [Quit: ZNC - http://znc.in]
CM-Punk has joined #cinch
CM-Punk has quit [Client Quit]
CM-Punk has joined #cinch