Hello .

I am trying to make a script that tracks the amount of times a person has joined a channel . I have found a few examples of script for tracking when I join a channel , but not what I was looking for .

A person ( PlayerA )join channel #test . The scripts writes down the person's nick $nick . to a text file channeltracker.txt and adds a counter of 1
A different person (PlayerB) joins the same channel ...script writes down that person nick to the same text file channeltracker.txt and adds a counter of 1

When PlayerA rejoins the channel #test , the script finds the $nick PlayerA and add +1 to PlayerA counter . $inc +1

After a while , the channeltracking.txt should look like a list

PlayerA 254
PlayerB 2
AnotherPerson 13
YetAnotherPerson 54


telling me that PlayerA has joined #test 254 times and is the most active person .