@name Chat Encoder/Decoder
@persist Key:array [ABCs Sent]:string

if(first())
{
    runOnChat(1)
    #~ is reserved flag key
    
    #Useful things
    ABCs = "abcdefghijklmnopqrstuvwxyz"
    
    function array generate(In:string)
    {
        if(In:length() != 26)
        {
            In = "!@#$%^&*()_+/=[]{}'|;:<>,."
        }
        
        local TA = In
        local TA2 = array()
        while(TA:length() > 0)
        {
            local N = randint(1, TA:length())
            TA2:pushString(TA[N])
            TA = TA:replace(TA[N], "")
        }
        return TA2
    }
    
    #Return a stripped down version of a string (lowercase, removes characters like punctiation, changes numbers to letter form seperated by dashes)
    function string string:ripped()
    {
        local Cmon = This:lower()
        
        #rip symbols
        local Wry = "!@#$%^&*()_+-={}[]|\\;:'\",.<>/?"
        for(I = 1, Wry:length())
        {
            Cmon:replace(Wry[I], "")
        }
    }
    
    #a-z is 97-122 so offset must be 96
}

if(chatClk())
{
    if(lastSpoke() == owner())
    {
        timer("send", 200)
        Sent = lastSaid():ripped()
    }
    else
    {
        #Deal with this shiet later
    }
}
