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