@name Botnet master
if(first())
{
    findByClass("gmod_wire_expression2")
    local R = findToArray()
    for(I=1,R:count())
    {
        local TE = R[I,entity]
        if(TE:getName()=="BTNTMSTRPOTATO")
        {
            print("Master already exists, buttnugget.")
            selfDestruct()
        }
    }
    setName("BTNTMSTRPOTATO")
    print("Congratz; you were the first on the server to beat the rush and control your army. /b/ must be proud.")
    runOnChat(1)
}

if(chatClk())
{
    if(lastSpoke()==owner())
    {
        local LS = owner():lastSaid():lower():explode(" ")
        if(LS[1,string]=="~cmd")
        {
            hideChat(1)
            print("You've sent the command: " +LS:concat(" ",2))
        }
    }else
    {
        findByClass("gmod_wire_expression2")
        local R = findToArray()
        for(I=1,R:count())
        {
            local TE = R[I,entity]
            if(TE:getName()=="SLAVE OF "+owner():name():upper()&TE:owner()==lastSpoke())
            { 
                local RC = lastSpoke():lastSaid():explode(" ")
                if(RC[1,string]=="~req")
                {
                    print("Request recieved!")
                    print(RC:concat(" ",2))
                }
                break
            }
        }
    }
}
