dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.1.0
FIQ has quit [Excess Flood]
FIQ has joined #cinch
FIQ is now known as Guest92370
postmodern has quit [Quit: Leaving]
fuzzyhorns has joined #cinch
<fuzzyhorns> hello all
<fuzzyhorns> im a little unclear on how to use the ban object. if i want my bot to be able to ban a user, i don't see an instance method on that object that does the ban
<fuzzyhorns> is it possible somehow within cinch to have a bot do this?
<dominikh> look at Channel methods
<fuzzyhorns> ah ok ty
<fuzzyhorns> ah there we are :) right under my nose
<dominikh> :)
<fuzzyhorns> what's the best way to give myself access to the channel object?
<fuzzyhorns> do i need to do that via the bot?
<dominikh> "the" channel object? your bot probably is in more than one channel, so which channel?
<fuzzyhorns> in just one, but i see i can do bot.channels, get an array, then grab the first one
<fuzzyhorns> what is more awkward to me is where do i set up these objects so my other classes can use them, yknow
<dominikh> dunno. maybe in bot.shared (a hash), maybe somewhere else. I'm not really clear on what your bot's design looks like
<dominikh> or what you'll do once the bot has to be in more than one channel
<fuzzyhorns> https://github.com/mooreniemi/demobot what im working on :)
<fuzzyhorns> in general though i feel dirty using $
<fuzzyhorns> :)
<dominikh> yeah I'm almost certain that not only one channel will have democracy :)
<fuzzyhorns> hehehe
<fuzzyhorns> i mean what i conceived of was people independently deploying their demobots
<fuzzyhorns> because a certain amount of configuration needs to be done per channel
<dominikh> people have more than one channel, too ;)
<fuzzyhorns> i havent handled that yet
<fuzzyhorns> indeed
<fuzzyhorns> im only halfway done as you see :)
<dominikh> so instead of having some global state, you should keep that in mind now, not later
<dominikh> maybe it'd help to know how to get a Channel object from a channel name: with the Channel(name) helper
<fuzzyhorns> oh yes, where can i see an example of that?
<dominikh> I just gave you one ;)
<dominikh> Channel("#foo") in a plugin method will get you a Channel object for #foo.
<fuzzyhorns> i tried using that and didnt seem to work, do i need to have something loaded in for it, or is it core?
<dominikh> (or bot.Channel("#foo") if it's needed from outside a plugin.)
<fuzzyhorns> so i still need to pass the bot into the classes outside of plugins
<fuzzyhorns> hmm
<dominikh> how else would they interact with the bot :)
<fuzzyhorns> global state lol
kith has quit [Ping timeout: 252 seconds]
thews has quit [Read error: No route to host]
thews has joined #cinch
kith has joined #cinch
fuzzyhorns has left #cinch [#cinch]
Guest92370 has quit [Changing host]
Guest92370 has joined #cinch
Guest92370 is now known as FIQ
dRbiG has quit [Ping timeout: 252 seconds]
postmodern has joined #cinch
rikai has quit [*.net *.split]
skybotalpha has quit [*.net *.split]
Netfeed has quit [*.net *.split]
xeviox|afk has quit [*.net *.split]
postmodern has quit [*.net *.split]
catepillar has quit [*.net *.split]
Liothen has quit [*.net *.split]
thews has quit [*.net *.split]
CM-Punk has quit [*.net *.split]
freedrull has quit [*.net *.split]
irsol has quit [*.net *.split]
mpapis has quit [*.net *.split]
rails has quit [*.net *.split]
postmodern has joined #cinch
catepillar has joined #cinch
Netfeed has joined #cinch
freedrull has joined #cinch
Liothen has joined #cinch
irsol has joined #cinch
xeviox|afk has joined #cinch
rails has joined #cinch
thews has joined #cinch
mpapis has joined #cinch
rikai has joined #cinch
skybotalpha has joined #cinch
CM-Punk has joined #cinch
irsol_ has joined #cinch
irsol has quit [Write error: Connection reset by peer]
mpapis has quit [Excess Flood]
mpapis has joined #cinch
irsol_ has quit [Changing host]
irsol_ has joined #cinch
irsol_ is now known as irsol
fuzzyhorns has joined #cinch
<fuzzyhorns> dumb question: if i want to send a response as a private message, what do i use? rather than m.reply, is there something else?
<leftylink> fuzzyhorns: m.user.send will do the trick
<fuzzyhorns> leftylink: ty :)
fuzzyhorns has left #cinch [#cinch]
FIQ has quit [Ping timeout: 252 seconds]
Guest81174 has joined #cinch
fuzzyhorns has joined #cinch
<fuzzyhorns> is there a way to configure the bot to initialize itself as an op?