~~~proposed script for ranking conversation stoppers in an irc channel~~~~

pseudocode

suck in the last 500 or so lines of irc room

prevTime = false
humans = array()

for each line
    if message from human
        newTime = time of message
        newName = name of human
        if (time and newName!=prevName)
            silence = newTime-prevTime
            humans[prevName][] = silence
        end if
        prevName = newName
        prevTime = newTime
    else
        do nothing
    end if
end for each

for each item in humans as name => silences
    avgSilence = average of all silences
    humans[name] = avgSilence
end for each

sort humans by avgSilence

print list of names and associated average silences after they comment in irc

[home]

Real Time Web Analytics