dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.1.0
kludge` has quit [Disconnected by services]
kludge` has joined #cinch
leftylin1 has joined #cinch
leftylink has quit [*.net *.split]
FiXato has quit [*.net *.split]
FiXato has joined #cinch
Azure has joined #cinch
irsol has quit [Read error: Operation timed out]
irsol has joined #cinch
xeviox|afk is now known as xeviox
postmodern has quit [Quit: Leaving]
nkr has joined #cinch
aclearman037 has joined #cinch
xeviox is now known as xeviox|afk
nkr has quit [Ping timeout: 240 seconds]
<Liru> How does one get rid of the constant "I should probably work in Python" feeling
<onewheelskyward> Work in python for a while?
<onewheelskyward> And get tired of it. :)
<Liru> That seems to be the only option right now. :p
nkr has joined #cinch
postmodern has joined #cinch
nkr has quit [Quit: Linkinus - http://linkinus.com]
Rylee has joined #cinch
<Rylee> What would the simplest way to have my bot randomly perform an action every time_interval?
<catepillar> use timers
<dominikh> (you're also using the word "randomly" wrong)
<catepillar> kinda depends
<catepillar> if he/she wants a random action, then it's _technically_ correct
<catepillar> but the best that can be feasilby and cheaply attained is pseudo-random
<dominikh> there's nothing random about performing an action every time_interval, and the content of the action wasn't the subject ;)
<Rylee> err
<Rylee> whoops, heh, I was typing something else then forgot to ^W over "randomly"
<dominikh> catepillar: told ya! :P
<catepillar> lol
<Rylee> Could I do something like...
<Rylee> >>> loop { Timer(range_rand(20, 30)) { action_on(Channel('#horse')) } }
<catepillar> what's your exit condition for loop?
<dominikh> if you fancy ending up with infinitively many timers for all possible values in [20, 30), then sure ;)
<Rylee> Oh, dear, I guess Timer isn't blocking, then. Whoops.
<Rylee> For Channel#{admins, half_ops,ops,voiced}, will Cinch include itself?
<dominikh> if it's one of these, sure
<catepillar> Timer is relatively simple. Somthing like def Timer(time, &block); Thread.new { sleep time; block.call }; end
<Rylee> Sorry to be bothersome, but... >>> o = Channel('#horse').ops - [User(bot.nick)] # this would theoretically store a list of ops, sans the bot itself, in o, right?
<dominikh> you can't set that attribute, it's a reader
<dominikh> even if you could set it, that wouldn't achieve anything
<catepillar> he isn't tsetting anything
<dominikh> oh
<dominikh> fair enough
<dominikh> there's no need for User(bot.nick) – just say bot
<catepillar> without testing, it seems about right
aclearman037 has quit []
<Rylee> err, derp
txdv has joined #cinch
<Rylee> heh, well that was simple, went from knowing exactly Nil about Cinch to having a working bot for the purpose needed in 30 minutes. Awesome framework!
<dominikh> nice :)
<onewheelskyward> rock on.
<onewheelskyward> I wasn't that fast but it was pretty quick.
cyrusdavid has quit [Ping timeout: 265 seconds]
cyrusdavid has joined #cinch